示例#1
0
 /// <summary>
 /// Constructs a new <see cref="DirectedGraph{T}"/>.
 /// </summary>
 public DirectedGraph()
 {
     _outgoing = new Dictionary <T, List <Edge <T> > >();
     _incoming = new Dictionary <T, List <Edge <T> > >();
     _arcs     = new EdgeCollection();
 }
示例#2
0
 /// <summary>
 /// Constructs a new <see cref="Graph{T}"/>.
 /// </summary>
 public Graph()
 {
     _outgoing = new Dictionary <T, List <Edge <T> > >();
     _edges    = new EdgeCollection();
 }