G - graph head typeV - vertex typeE - edge typepublic class AsciiGraphLoader<G extends GraphHead,V extends Vertex,E extends Edge> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
appendFromString(String asciiGraph)
Appends the given ASCII GDL to the graph handled by that loader.
|
static <G extends GraphHead,V extends Vertex,E extends Edge> |
fromFile(String fileName,
ElementFactoryProvider<G,V,E> elementFactoryProvider)
Creates an AsciiGraphLoader from the given ASCII GDL file.
|
static <G extends GraphHead,V extends Vertex,E extends Edge> |
fromStream(InputStream inputStream,
ElementFactoryProvider<G,V,E> elementFactoryProvider)
Creates an AsciiGraphLoader from the given ASCII GDL file.
|
static <G extends GraphHead,V extends Vertex,E extends Edge> |
fromString(String asciiGraph,
ElementFactoryProvider<G,V,E> elementFactoryProvider)
Creates an AsciiGraphLoader from the given ASCII GDL string.
|
E |
getEdgeByVariable(String variable)
Returns edge by its given variable.
|
Map<String,E> |
getEdgeCache()
Returns all edges that are bound to a variable in the GDL script.
|
Collection<E> |
getEdges()
Returns all edges contained in the ASCII graph.
|
Collection<E> |
getEdgesByGraphIds(GradoopIdSet graphIds)
Returns all edges that belong to the given graphs.
|
Collection<E> |
getEdgesByGraphVariables(String... variables)
Returns all edges that belong to the given graph variables.
|
Collection<E> |
getEdgesByVariables(String... variables)
Returns edges by their given variables.
|
G |
getGraphHeadByVariable(String variable)
Returns GraphHead by given variable.
|
Map<String,G> |
getGraphHeadCache()
Returns all graph heads that are bound to a variable in the GDL script.
|
Collection<G> |
getGraphHeads()
Returns all GraphHeads contained in the ASCII graph.
|
Collection<G> |
getGraphHeadsByVariables(String... variables)
Returns GraphHeads by their given variables.
|
V |
getVertexByVariable(String variable)
Returns vertex by its given variable.
|
Map<String,V> |
getVertexCache()
Returns all vertices that are bound to a variable in the GDL script.
|
Collection<V> |
getVertices()
Returns all vertices contained in the ASCII graph.
|
Collection<V> |
getVerticesByGraphIds(GradoopIdSet graphIds)
Returns all vertices that belong to the given graphs.
|
Collection<V> |
getVerticesByGraphVariables(String... graphVariables)
Returns all vertices that belong to the given graph variables.
|
Collection<V> |
getVerticesByVariables(String... variables)
Returns vertices by their given variables.
|
public static <G extends GraphHead,V extends Vertex,E extends Edge> AsciiGraphLoader<G,V,E> fromString(String asciiGraph, ElementFactoryProvider<G,V,E> elementFactoryProvider)
G - graph head typeV - vertex typeE - edge typeasciiGraph - GDL stringelementFactoryProvider - Factory provider for graph elements.public static <G extends GraphHead,V extends Vertex,E extends Edge> AsciiGraphLoader<G,V,E> fromFile(String fileName, ElementFactoryProvider<G,V,E> elementFactoryProvider) throws IOException
G - graph head typeV - vertex typeE - edge typefileName - File that contains a GDL scriptelementFactoryProvider - Factory provider for graph elements.IOException - on failurepublic static <G extends GraphHead,V extends Vertex,E extends Edge> AsciiGraphLoader<G,V,E> fromStream(InputStream inputStream, ElementFactoryProvider<G,V,E> elementFactoryProvider) throws IOException
G - graph head typeV - vertex typeE - edge typeinputStream - File that contains a GDL scriptelementFactoryProvider - Factory provider for graph elements.IOException - on failurepublic void appendFromString(String asciiGraph)
asciiGraph - GDL stringpublic Collection<G> getGraphHeads()
public G getGraphHeadByVariable(String variable)
variable - variable used in GDL scriptnull if graph is not cachedpublic Collection<G> getGraphHeadsByVariables(String... variables)
variables - variables used in GDL scriptpublic Collection<V> getVertices()
public V getVertexByVariable(String variable)
variable - variable used in GDL scriptnull if not presentpublic Collection<V> getVerticesByVariables(String... variables)
variables - variables used in GDL scriptpublic Collection<V> getVerticesByGraphIds(GradoopIdSet graphIds)
graphIds - graph identifierspublic Collection<V> getVerticesByGraphVariables(String... graphVariables)
graphVariables - graph variables used in the GDL scriptpublic Collection<E> getEdges()
public E getEdgeByVariable(String variable)
variable - variable used in GDL scriptnull if not presentpublic Collection<E> getEdgesByVariables(String... variables)
variables - variables used in GDL scriptpublic Collection<E> getEdgesByGraphIds(GradoopIdSet graphIds)
graphIds - Graph identifierspublic Collection<E> getEdgesByGraphVariables(String... variables)
variables - graph variables used in the GDL scriptpublic Map<String,G> getGraphHeadCache()
public Map<String,V> getVertexCache()
Copyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.