Class ABCFormat


  • public final class ABCFormat
    extends Object
    Utilities for handling the ABC (source, target, weight) edge list format.
    • Field Detail

    • Method Detail

      • parse

        public static org.jgrapht.Graph<String,​org.jgrapht.graph.DefaultWeightedEdge> parse​(Stream<String> stream,
                                                                                                  String regex)
        Parse the string stream of ABC-formatted edges.
        Parameters:
        stream - the input stream
        regex - the separator regular expression
        Returns:
        the graph represented in the stream
      • parse

        public static org.jgrapht.Graph<String,​org.jgrapht.graph.DefaultWeightedEdge> parse​(Stream<String> stream)
        Parse the string stream of ABC-formatted edges.
        Parameters:
        stream - the input stream
        Returns:
        the graph represented in the stream