public class LNetwork
extends java.lang.Object
Constructor and Description |
---|
LNetwork() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(Edge edge) |
void |
addNode(Node node) |
java.awt.image.BufferedImage |
drawNetwork(int width,
int height) |
int |
getEdgeCount() |
java.util.HashSet<Edge> |
getEdges() |
int |
getNodeCount() |
java.util.HashSet<Node> |
getNodes() |
void |
recomputeLayout(int iterations) |
java.lang.String |
toString() |
public java.util.HashSet<Node> getNodes()
public java.util.HashSet<Edge> getEdges()
public void addNode(Node node)
public void addEdge(Edge edge)
public int getEdgeCount()
public int getNodeCount()
public void recomputeLayout(int iterations)
public java.awt.image.BufferedImage drawNetwork(int width, int height)
public java.lang.String toString()
toString
in class java.lang.Object