public Graph(bool isDirected) { IsDirected = isDirected; Nodes = new NodeCollection(this); if (isDirected) { Edges = new DirectedEdgeCollection(this); } else { Edges = new UndirectedEdgeCollection(this); } }
public Graph(bool isDirected) { IsDirected = isDirected; Nodes = new NodeCollection(this); if (isDirected) { Edges = new DirectedEdgeCollection(this); } else { Edges = new UndirectedEdgeCollection(this); } SubGraphs = new SubGraphCollection(this); UserData = new Dictionary <object, object>(); }