public final class GenericGraph extends GenericElement implements ImmutableGraph<GenericVertex,GenericEdge>
Modifier and Type | Class and Description |
---|---|
static class |
GenericGraph.GenericGraphBuilder |
GenericElement.GenericElementBuilder<T extends GenericElement.GenericElementBuilder>
properties
getId, getNamespace, getProperties, getProperty, getProperty, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNamespace
public GenericGraph asGenericGraph()
asGenericGraph
in interface ImmutableGraph<GenericVertex,GenericEdge>
public List<GenericVertex> getVertices()
getVertices
in interface ImmutableGraph<GenericVertex,GenericEdge>
public List<GenericEdge> getEdges()
getEdges
in interface ImmutableGraph<GenericVertex,GenericEdge>
public GraphInfo getGraphInfo()
public String getDescription()
GraphInfo
getDescription
in interface GraphInfo
public String getLabel()
GraphInfo
getLabel
in interface GraphInfo
getLabel
in class GenericElement
public Focus getDefaultFocus()
getDefaultFocus
in interface ImmutableGraph<GenericVertex,GenericEdge>
public List<GenericVertex> resolveVertices(NodeRef nodeRef)
resolveVertices
in interface ImmutableGraph<GenericVertex,GenericEdge>
public GenericVertex getVertex(String id)
getVertex
in interface ImmutableGraph<GenericVertex,GenericEdge>
public GenericEdge getEdge(String id)
getEdge
in interface ImmutableGraph<GenericVertex,GenericEdge>
public List<String> getVertexIds()
getVertexIds
in interface ImmutableGraph<GenericVertex,GenericEdge>
public List<String> getEdgeIds()
getEdgeIds
in interface ImmutableGraph<GenericVertex,GenericEdge>
public List<GenericVertex> resolveVertices(Collection<String> vertexIds)
resolveVertices
in interface ImmutableGraph<GenericVertex,GenericEdge>
public GenericVertex resolveVertex(VertexRef vertexRef)
resolveVertex
in interface ImmutableGraph<GenericVertex,GenericEdge>
public List<GenericVertex> resolveVertexRefs(Collection<VertexRef> vertexRefs)
public List<GenericEdge> resolveEdges(Collection<String> vertexIds)
resolveEdges
in interface ImmutableGraph<GenericVertex,GenericEdge>
public Collection<GenericVertex> getNeighbors(GenericVertex eachVertex)
getNeighbors
in interface ImmutableGraph<GenericVertex,GenericEdge>
public Collection<GenericEdge> getConnectingEdges(GenericVertex eachVertex)
getConnectingEdges
in interface ImmutableGraph<GenericVertex,GenericEdge>
public ImmutableGraph<GenericVertex,GenericEdge> getView(Collection<GenericVertex> verticesInFocus, int szl)
getView
in interface ImmutableGraph<GenericVertex,GenericEdge>
public boolean equals(Object o)
equals
in class GenericElement
public int hashCode()
hashCode
in class GenericElement
public static GenericGraph.GenericGraphBuilder builder()
public static GenericGraph.GenericGraphBuilder from(GenericGraph graph)
Copyright © 2021. All rights reserved.