public FruchtermanReingoldLayoutAlgorithm(IVertexAndEdgeListGraph graph, SizeF size) { this.size = size; this.graph = graph; pos = new VertexPointFDictionary(); disp = new VertexVector2DDictionary(); }
public ForceDirectedLayoutAlgorithm( IVertexAndEdgeListGraph visitedGraph ) : base(visitedGraph) { this.preLayoutAlgorithm = new RandomLayoutAlgorithm(visitedGraph, this.Positions); this.potential = new DirectedForcePotential(this); this.potentials = new VertexPointFDictionary(); }
public ForceDirectedLayoutAlgorithm( IVertexAndEdgeListGraph visitedGraph, IPotential potential, ILayoutAlgorithm preLayoutAlgorithm ) : base(visitedGraph) { this.preLayoutAlgorithm = preLayoutAlgorithm; this.potential = potential; this.potentials = new VertexPointFDictionary(); }