org.grinvin
Interface GraphBundle
- GraphBundleView
- DefaultGraphBundle, GraphBundleWithModels
public interface GraphBundle
A mutable version of
GraphBundleView
. Provides methods to store
or change information contained in a bundle.
adjacencyList , booleanAdjacencyMatrix , distanceMatrix , eccentricityList , eigenValues , getCachedInvariantValue , getDescription , getEmbedding , getEmbedding , getEmbeddingCount , getGraph , getGraphIconFactory , getInvariantValue , getInvariantValues , getInvariants , getName , getProperties |
addInvariantValue
public void addInvariantValue(InvariantValue value)
Add the given InvariantValue as a cached value to this bundle
value
- The InvariantValue to be added to this bundle.
createEmbedding
public Embedding createEmbedding()
Factory method which creates a new (empty) embedding
and installs it as the next embedding in this bundle, i.e., the embedding
with the next available index.
This embedding should have the graph returned by
getGraph()
as a peer. Subsequent calls to
GraphBundle
with the appropriate
index, should return the embedding created by this method.
createGraph
public Graph createGraph()
Factory method which creates a new (empty) graph for this bundle.
Subsequent calls to
getGraph()
should return this graph.
setGraphIconFactory
public void setGraphIconFactory(GraphIconFactory graphIconFactory)
Set the graph icon factory used for displaying this graph as
an icon.