コード例 #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
ファイル: Graph.cs プロジェクト: Chamberlain91/Heirloom
 /// <summary>
 /// Constructs a new <see cref="Graph{T}"/>.
 /// </summary>
 public Graph()
 {
     _outgoing = new Dictionary <T, List <Edge <T> > >();
     _edges    = new EdgeCollection();
 }