public interface Graph<V,E extends Edge<V>> extends GraphModel<V,E>
Modifier and Type | Method and Description |
---|---|
void |
addViewListener(GraphViewListener listener)
Add a listener for view change events.
|
void |
copyView(Graph<V,E> src,
ViewCopyHelper<Graph<V,E>,V,E> helper)
Transfer view settings from a related graph.
|
void |
fireGraphChange(GraphChangeType type,
Object data)
The graph has changed, all listeners will be notified.
|
Map<String,String> |
getAttributes()
Retrieve graph-level attributes
|
Dimension |
getDimension()
Get the global bounds of the graph.
|
String |
getDisplayName(V node)
Retrieve the name to use when displaying a graph node.
|
EdgeAttributesReader |
getEdgeAttributeReader()
Give access to the attribute reader of edges
|
NodeAttributesReader |
getNodeAttributeReader()
Give access to the attribute reader of vertices
|
StyleManager<V,E> |
getStyleManager()
Retrieve the style manager for this graph.
|
void |
save(String path)
Save this graph.
|
void |
save(String path,
Collection<V> nodes,
Collection<E> edges)
Save some components of this graph.
|
void |
setAttribute(String name,
String value) |
addEdge, addNode, containsEdge, containsNode, getAnnotation, getEdge, getEdges, getExistingNode, getGraphName, getIncomingEdges, getNodeByName, getNodeCount, getNodeOrderSize, getNodes, getOutgoingEdges, getShortestPath, getStronglyConnectedComponents, getSubgraph, merge, removeEdge, removeNode, searchNodes, setGraphName
StyleManager<V,E> getStyleManager()
EdgeAttributesReader getEdgeAttributeReader()
NodeAttributesReader getNodeAttributeReader()
Dimension getDimension()
void save(String path) throws GsException
path
- GsException
void save(String path, Collection<V> nodes, Collection<E> edges) throws GsException
path
- GsException
void addViewListener(GraphViewListener listener)
listener
- void copyView(Graph<V,E> src, ViewCopyHelper<Graph<V,E>,V,E> helper)
src
- the source graphvoid fireGraphChange(GraphChangeType type, Object data)
type
- data
- String getDisplayName(V node)
node
- Map<String,String> getAttributes()
Copyright © 2005–2020. All rights reserved.