Interface ABCFormat


  • public interface ABCFormat
    Utilities for handling the ABC (source, target, weight) edge list format.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String SEPARATOR
      The default separator, expressed by the tab symbol.
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static org.jgrapht.Graph<String,​org.jgrapht.graph.DefaultWeightedEdge> parse​(Stream<String> stream)
      Parse the string stream of ABC-formatted edges.
      static org.jgrapht.Graph<String,​org.jgrapht.graph.DefaultWeightedEdge> parse​(Stream<String> stream, String regex)
      Parse the string stream of ABC-formatted edges.
    • Method Detail

      • parse

        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

        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