public class WeightedEdgeLineProcessor extends java.lang.Object implements EdgeLineProcessor<java.lang.Double>
0<delim>1<delim>weight
. Order per line is nodeFrom -> nodeTo, in
the case of directed edges, and the weights are assumed to be doubles
i.e., one edge per line without any additional edge informationConstructor and Description |
---|
WeightedEdgeLineProcessor(java.lang.String delimiter,
boolean directed) |
WeightedEdgeLineProcessor(java.lang.String delimiter,
boolean directed,
java.lang.String... skipLinesStartingWith) |
Modifier and Type | Method and Description |
---|---|
Edge<java.lang.Double> |
processLine(java.lang.String line)
Process a line of text into an edge.
|
public WeightedEdgeLineProcessor(java.lang.String delimiter, boolean directed)
public WeightedEdgeLineProcessor(java.lang.String delimiter, boolean directed, java.lang.String... skipLinesStartingWith)
public Edge<java.lang.Double> processLine(java.lang.String line)
EdgeLineProcessor
processLine
in interface EdgeLineProcessor<java.lang.Double>