adjacencyList
public int[][] adjacencyList()
Returns a (cached) adjacency list representation for the corresponding graph.
The resulting array
contains an array of neighbour indices for every vertex. The length of each array is exactly
the valency of the corresponding vertex.
Important: The return value should be considered read only and is valid
only as long as the graph in the bundle is not changed.
- adjacencyList in interface GraphBundleView
booleanAdjacencyMatrix
public boolean[][] booleanAdjacencyMatrix()
Return a (cached) boolean adjacency matrix for the corresponding
graph. Row and column
indices correspond to vertex indices. Entries are
true
when the corresponding vertices are adjacent (and different) and
false
otherwise.
Important: The return value should be considered read only and is valid
only as long as the graph in the bundle is not changed.
- booleanAdjacencyMatrix in interface GraphBundleView
distanceMatrix
public int[][] distanceMatrix()
Returns a (cached) distance matrix for the corresponding graph. Row and column
indices correspond to vertex indices. Entries contains the distance
between corresponding vertices or 0 when vertices are equal or
belong to different components of the graph.
- distanceMatrix in interface GraphBundleView
eccentricityList
public int[] eccentricityList()
Returns a (cached) eccentricity list for the corresponding graph.
The resulting array contains the eccentricity for every vertex.
Important: The return value should be considered read only and is valid
only as long as the graph in the bundle is not changed.
- eccentricityList in interface GraphBundleView
eigenValues
public double[] eigenValues()
Returns a (cached) array of eigenvalues for the corresponding graph. This array
is sorted in descending order.
- eigenValues in interface GraphBundleView
fireGraphBundleChanged
public void fireGraphBundleChanged()
getCachedInvariantValue
public InvariantValue getCachedInvariantValue(Invariant invariant)
Return the cached value of the graph for the given invariant, if available.
- getCachedInvariantValue in interface GraphBundleView
invariant
- the URI of the invariant
- The value of the computed invariant or null if unavailable
getDescription
public String getDescription()
Return a textual description of this graph.
- getDescription in interface GraphBundleView
getProperties().getProperty("graph.description")
getInvariantValues
public Collection getInvariantValues()
Return the collection of cached values of the invariants of the graph.
- getInvariantValues in interface GraphBundleView
- The current collection of invariant values
getInvariants
public Set getInvariants()
Return the set of invariants currently registered with this bundle.
- getInvariants in interface GraphBundleView
getName
public String getName()
Return the name of this graph.
- getName in interface GraphBundleView
getProperties().getProperty("graph.name")
getProperties
public InternationalizedProperties getProperties()
Return the internationalized properties-object for this bundle. Currently
the following property keys should be supported:
- graph.name Name of this graph.
- graph.description Textual description of this graph.
- embedding_i.description Textual description of the
embedding with index i, with i > 0.
- getProperties in interface GraphBundleView