public class WeightedEdgeLineProcessor extends Object implements EdgeLineProcessor<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(String delimiter,
boolean directed) |
WeightedEdgeLineProcessor(String delimiter,
boolean directed,
String... skipLinesStartingWith) |
Modifier and Type | Method and Description |
---|---|
Edge<Double> |
processLine(String line)
Process a line of text into an edge.
|
public WeightedEdgeLineProcessor(String delimiter, boolean directed)
public Edge<Double> processLine(String line)
EdgeLineProcessor
processLine
in interface EdgeLineProcessor<Double>
Copyright © 2020. All rights reserved.