Esempio n. 1
0
        public FruchtermanReingoldLayoutAlgorithm(IVertexAndEdgeListGraph graph, SizeF size)
        {
            this.size  = size;
            this.graph = graph;

            pos  = new VertexPointFDictionary();
            disp = new VertexVector2DDictionary();
        }
Esempio n. 2
0
 public ForceDirectedLayoutAlgorithm(
     IVertexAndEdgeListGraph visitedGraph
     )
     : base(visitedGraph)
 {
     this.preLayoutAlgorithm = new RandomLayoutAlgorithm(visitedGraph, this.Positions);
     this.potential          = new DirectedForcePotential(this);
     this.potentials         = new VertexPointFDictionary();
 }
Esempio n. 3
0
 public ForceDirectedLayoutAlgorithm(
     IVertexAndEdgeListGraph visitedGraph,
     IPotential potential,
     ILayoutAlgorithm preLayoutAlgorithm
     )
     : base(visitedGraph)
 {
     this.preLayoutAlgorithm = preLayoutAlgorithm;
     this.potential          = potential;
     this.potentials         = new VertexPointFDictionary();
 }