public class GraphMLReader extends Object
| Constructor and Description |
|---|
GraphMLReader(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
static void |
inputGraph(Graph inputGraph,
InputStream graphMLInputStream)
Input the GraphML stream data into the graph.
|
static void |
inputGraph(Graph inputGraph,
InputStream graphMLInputStream,
int bufferSize,
String vertexIdKey,
String edgeIdKey,
String edgeLabelKey)
Input the GraphML stream data into the graph.
|
static void |
inputGraph(Graph inputGraph,
String filename)
Input the GraphML stream data into the graph.
|
static void |
inputGraph(Graph inputGraph,
String filename,
int bufferSize,
String vertexIdKey,
String edgeIdKey,
String edgeLabelKey)
Input the GraphML stream data into the graph.
|
void |
inputGraph(InputStream graphMLInputStream)
Input the GraphML stream data into the graph.
|
void |
inputGraph(InputStream graphMLInputStream,
int bufferSize)
Input the GraphML stream data into the graph.
|
void |
inputGraph(String filename)
Input the GraphML stream data into the graph.
|
void |
inputGraph(String filename,
int bufferSize)
Input the GraphML stream data into the graph.
|
void |
setEdgeIdKey(String edgeIdKey) |
void |
setEdgeLabelKey(String edgeLabelKey) |
void |
setVertexIdKey(String vertexIdKey) |
public GraphMLReader(Graph graph)
graph - the graph to populate with the GraphML datapublic void setVertexIdKey(String vertexIdKey)
vertexIdKey - if the id of a vertex is a <data/> property, fetch it from the data property.public void setEdgeIdKey(String edgeIdKey)
edgeIdKey - if the id of an edge is a <data/> property, fetch it from the data property.public void setEdgeLabelKey(String edgeLabelKey)
edgeLabelKey - if the label of an edge is a <data/> property, fetch it from the data property.public void inputGraph(InputStream graphMLInputStream) throws IOException
graphMLInputStream - an InputStream of GraphML dataIOException - thrown when the GraphML data is not correctly formattedpublic void inputGraph(String filename) throws IOException
filename - name of a file containing GraphML dataIOException - thrown when the GraphML data is not correctly formattedpublic void inputGraph(InputStream graphMLInputStream, int bufferSize) throws IOException
graphMLInputStream - an InputStream of GraphML databufferSize - the amount of elements to hold in memory before committing a transactions (only valid for TransactionalGraphs)IOException - thrown when the GraphML data is not correctly formattedpublic void inputGraph(String filename, int bufferSize) throws IOException
filename - name of a file containing GraphML databufferSize - the amount of elements to hold in memory before committing a transactions (only valid for TransactionalGraphs)IOException - thrown when the GraphML data is not correctly formattedpublic static void inputGraph(Graph inputGraph, InputStream graphMLInputStream) throws IOException
inputGraph - the graph to populate with the GraphML datagraphMLInputStream - an InputStream of GraphML dataIOException - thrown when the GraphML data is not correctly formattedpublic static void inputGraph(Graph inputGraph, String filename) throws IOException
inputGraph - the graph to populate with the GraphML datafilename - name of a file containing GraphML dataIOException - thrown when the GraphML data is not correctly formattedpublic static void inputGraph(Graph inputGraph, String filename, int bufferSize, String vertexIdKey, String edgeIdKey, String edgeLabelKey) throws IOException
inputGraph - the graph to populate with the GraphML datafilename - name of a file containing GraphML databufferSize - the amount of elements to hold in memory before committing a transactions (only valid for TransactionalGraphs)vertexIdKey - if the id of a vertex is a <data/> property, fetch it from the data property.edgeIdKey - if the id of an edge is a <data/> property, fetch it from the data property.edgeLabelKey - if the label of an edge is a <data/> property, fetch it from the data property.IOException - thrown when the GraphML data is not correctly formattedpublic static void inputGraph(Graph inputGraph, InputStream graphMLInputStream, int bufferSize, String vertexIdKey, String edgeIdKey, String edgeLabelKey) throws IOException
inputGraph - the graph to populate with the GraphML datagraphMLInputStream - an InputStream of GraphML databufferSize - the amount of elements to hold in memory before committing a transactions (only valid for TransactionalGraphs)vertexIdKey - if the id of a vertex is a <data/> property, fetch it from the data property.edgeIdKey - if the id of an edge is a <data/> property, fetch it from the data property.edgeLabelKey - if the label of an edge is a <data/> property, fetch it from the data property.IOException - thrown when the GraphML data is not correctly formattedCopyright © 2010-2014. All Rights Reserved.