public static void InitGraph(readgml.GRAPH g) { attraction_multiplier = 5; repulsion_multiplier = 0.75f; max_iterations = 1000; width = 200; height = 200; finished = false; epsilon = .000001f; layout_iterations = 0; temperature = width / 10.0f; graph = g; nodes_length = graph.n_nodes; edges_length = graph.n_edges; force_constant = Mathf.Sqrt (height * width / nodes_length); attraction_constant = attraction_multiplier * force_constant; repulsion_constant = repulsion_multiplier * force_constant; }
public static void setGraph (readgml.GRAPH g) { graph = g; }