|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.more.util.io.MoreIoUtilities
public class MoreIoUtilities
MORe Utility methods for writing and reading networks
Constructor Summary | |
---|---|
MoreIoUtilities()
|
Method Summary | ||
---|---|---|
static
|
inputNetwork(File inputfile,
org.apache.commons.collections15.Factory<V> nodeFactory,
MoreEdgeFactory<V,E> edgeFactory,
String name)
Reads a GraphML network from the given file into an directed MoreNetwork. |
|
static
|
inputNetwork(File inputfile,
org.apache.commons.collections15.Factory<V> nodeFactory,
String name)
Reads a GraphML network from the given file into an directed MoreNetwork. |
|
static
|
outputGraph(MoreNetwork<V,E> network,
File outputFile)
Write the given network to the given file in GraphML format. |
|
static
|
outputGraph(MoreNetwork<V,E> network,
File outputFile,
Map<String,GraphMLMetadata<V>> vertexMetadata,
Map<String,GraphMLMetadata<E>> edgeMetadata)
|
|
static
|
outputGraph(MoreNetwork<V,E> network,
File outputFile,
Map<String,GraphMLMetadata<V>> vertexMetadata,
Map<String,GraphMLMetadata<E>> edgeMetadata,
org.apache.commons.collections15.Transformer<V,String> vertexIdsTransformer)
Allowed values for type in meta data: boolean, int, long, float, double, string Write the given network to the given file in GraphML format. |
|
static
|
outputGraph(MoreNetwork<V,E> network,
File outputFile,
org.apache.commons.collections15.Transformer<V,String> vertexIdsTransformer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MoreIoUtilities()
Method Detail |
---|
public static <V,E extends MoreEdge<? super V>> void outputGraph(MoreNetwork<V,E> network, File outputFile)
V
- vertex type parameterE
- edge type parameternetwork
- the network to writeoutputFile
- the file to write the network topublic static <V,E extends MoreEdge<? super V>> void outputGraph(MoreNetwork<V,E> network, File outputFile, org.apache.commons.collections15.Transformer<V,String> vertexIdsTransformer)
public static <V,E extends MoreEdge<? super V>> void outputGraph(MoreNetwork<V,E> network, File outputFile, Map<String,GraphMLMetadata<V>> vertexMetadata, Map<String,GraphMLMetadata<E>> edgeMetadata)
network
- outputFile
- vertexMetadata
- edgeMetadata
- public static <V,E extends MoreEdge<? super V>> void outputGraph(MoreNetwork<V,E> network, File outputFile, Map<String,GraphMLMetadata<V>> vertexMetadata, Map<String,GraphMLMetadata<E>> edgeMetadata, org.apache.commons.collections15.Transformer<V,String> vertexIdsTransformer)
V
- vertex type parameterE
- edge type parameternetwork
- the network to writeoutputFile
- the file to write the network tovertexMetadata
- definition of meta-data for verticesedgeMetadata
- definition of meta-data for edgespublic static <V> MoreNetwork<V,MoreEdge<V>> inputNetwork(File inputfile, org.apache.commons.collections15.Factory<V> nodeFactory, String name)
V
- vertex type parameterinputfile
- the file to read the network fromnodeFactory
- the factory used to create new vertex objectsname
- the new name of the network
public static <V,E extends MoreEdge<V>> MoreNetwork<V,E> inputNetwork(File inputfile, org.apache.commons.collections15.Factory<V> nodeFactory, MoreEdgeFactory<V,E> edgeFactory, String name)
V
- vertex type parameterE
- edge type parameterinputfile
- the file to read the network fromnodeFactory
- the factory used to create new vertex objectsedgeFactory
- the factory used to create new edge objectsname
- the new name of the network
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |