Exemplo n.º 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();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs a new <see cref="Graph{T}"/>.
 /// </summary>
 public Graph()
 {
     _outgoing = new Dictionary <T, List <Edge <T> > >();
     _edges    = new EdgeCollection();
 }