/// <inheritdoc /> /// <see cref="T:CC_Lib.Structures.Graphs.Graph`2" /> public SimpleGraph(GraphDirectionalMode directionalMode = GraphDirectionalMode.BiDirectional, double defaultWeight = 1) : base(directionalMode, defaultWeight) { }
/// <summary> /// Creates a graph. /// The edges are bidirectional by default - meaning that when adding a connection, the connection will be added to both nodes. /// </summary> /// <param name="directionalMode">Determines whether the edges are unidirectional or bidirectional</param> /// <param name="defaultWeight">The default weight if the weight isn't given when adding connections</param> protected Graph(GraphDirectionalMode directionalMode = GraphDirectionalMode.BiDirectional, double defaultWeight = 1) { DirectionalMode = directionalMode; DefaultWeight = defaultWeight; }