Constructor and Description |
---|
EdgeIO() |
Modifier and Type | Method and Description |
---|---|
static String |
getHeader()
Write the header line, i.e.
|
static EdgeDefinition |
readDefinitionFromTab(String def)
Read an EdgeDefinition from a tab-delimited String.
|
static Edge |
readFromTab(String s,
Map<String,Node> nodes)
Read an Edge from a tab-delimited String.
|
static String |
writeDefinitionToTab(EdgeDefinition def)
Get a string representation of an edge definition.
|
static String |
writeEdgesToTab(Set<Edge> edges)
Get a string representation of all edges in a collection, divided by newlines, with edges in a tabbed format.
|
static String |
writeToTab(Edge e)
Get a string representation of an edge.
|
public static String writeEdgesToTab(Set<Edge> edges)
edges
- the edges that needs to be writtenwriteToTab(be.svlandeg.diffany.core.networks.Edge)
public static String writeToTab(Edge e)
e
- the edgepublic static String writeDefinitionToTab(EdgeDefinition def)
def
- the original edge definitionpublic static String getHeader()
public static Edge readFromTab(String s, Map<String,Node> nodes) throws IOException
s
- the tab-delimited string containing all parameters of the Edgenodes
- the input nodes in the network, containing at least the two nodes for this edge (otherwise source/target will be null)IOException
- when an error occurs during parsingpublic static EdgeDefinition readDefinitionFromTab(String def) throws IOException
def
- the original edge definition, in string formatIOException
- when an error occurs during parsingCopyright © 2016. All rights reserved.