test_class.declarator: graphMLDocStart =
        "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
            + "<graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
            + "xsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\">"
test_class.modifier: static final
test_class.original_string: static final String graphMLDocStart =
        "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
            + "<graphml xmlns=\"http://graphml.graphdrawing.org/xmlns\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
            + "xsi:schemaLocation=\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\">";
test_class.type: String
test_class.var_name: graphMLDocStart
test_class.declarator: reader
test_class.modifier: private
test_class.original_string: private GraphMLReader2<MutableNetwork<DummyNode, DummyEdge>, DummyNode, DummyEdge> reader;
test_class.type: GraphMLReader2<MutableNetwork<DummyNode, DummyEdge>, DummyNode, DummyEdge>
test_class.var_name: reader
test_class.file: jung-io/src/test/java/edu/uci/ics/jung/io/graphml/TestGraphMLReader2.java
test_class.identifier: TestGraphMLReader2
test_case.body: @Test
    public void testAttributesFile() throws Exception {
  
      // Read the graph object.
      Network<DummyNode, DummyEdge> graph =
          readGraphFromFile(
              "attributes.graphml",
              new DummyGraphObjectBase.UndirectedNetworkFactory(),
              new DummyNode.Factory(),
              new DummyEdge.EdgeFactory()); // , new DummyEdge.HyperEdgeFactory());
  
      Assert.assertEquals(6, graph.nodes().size());
      Assert.assertEquals(7, graph.edges().size());
  
      Assert.assertEquals(1, reader.getGraphMLDocument().getGraphMetadata().size());
  
      // Test node ids
      int id = 0;
      List<NodeMetadata> nodes =
          new ArrayList<NodeMetadata>(
              reader.getGraphMLDocument().getGraphMetadata().get(0).getNodeMap().values());
      Collections.sort(
          nodes,
          new Comparator<NodeMetadata>() {
            public int compare(NodeMetadata o1, NodeMetadata o2) {
              return o1.getId().compareTo(o2.getId());
            }
          });
      Assert.assertEquals(6, nodes.size());
      for (NodeMetadata md : nodes) {
        Assert.assertEquals('n', md.getId().charAt(0));
        Assert.assertEquals(id++, Integer.parseInt(md.getId().substring(1)));
      }
  
      // Test edge ids
      id = 0;
      List<EdgeMetadata> edges =
          new ArrayList<EdgeMetadata>(
              reader.getGraphMLDocument().getGraphMetadata().get(0).getEdgeMap().values());
      Collections.sort(
          edges,
          new Comparator<EdgeMetadata>() {
            public int compare(EdgeMetadata o1, EdgeMetadata o2) {
              return o1.getId().compareTo(o2.getId());
            }
          });
      Assert.assertEquals(7, edges.size());
      for (EdgeMetadata md : edges) {
        Assert.assertEquals('e', md.getId().charAt(0));
        Assert.assertEquals(id++, Integer.parseInt(md.getId().substring(1)));
      }
  
      Assert.assertEquals("green", nodes.get(0).getProperties().get("d0"));
      Assert.assertEquals("yellow", nodes.get(1).getProperties().get("d0"));
      Assert.assertEquals("blue", nodes.get(2).getProperties().get("d0"));
      Assert.assertEquals("red", nodes.get(3).getProperties().get("d0"));
      Assert.assertEquals("yellow", nodes.get(4).getProperties().get("d0"));
      Assert.assertEquals("turquoise", nodes.get(5).getProperties().get("d0"));
  
      Assert.assertEquals("1.0", edges.get(0).getProperties().get("d1"));
      Assert.assertEquals("1.0", edges.get(1).getProperties().get("d1"));
      Assert.assertEquals("2.0", edges.get(2).getProperties().get("d1"));
      Assert.assertEquals(null, edges.get(3).getProperties().get("d1"));
      Assert.assertEquals(null, edges.get(4).getProperties().get("d1"));
      Assert.assertEquals(null, edges.get(5).getProperties().get("d1"));
      Assert.assertEquals("1.1", edges.get(6).getProperties().get("d1"));
    }
test_case.class_method_signature: TestGraphMLReader2.testAttributesFile()
test_case.full_signature: @Test public void testAttributesFile()
test_case.identifier: testAttributesFile
test_case.invocations: readGraphFromFile assertEquals size nodes assertEquals size edges assertEquals size getGraphMetadata getGraphMLDocument values getNodeMap get getGraphMetadata getGraphMLDocument sort compareTo getId getId assertEquals size assertEquals charAt getId assertEquals parseInt substring getId values getEdgeMap get getGraphMetadata getGraphMLDocument sort compareTo getId getId assertEquals size assertEquals charAt getId assertEquals parseInt substring getId assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get assertEquals get getProperties get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAttributesFile()
focal_class.declarator: xmlEventReader
focal_class.modifier: protected
focal_class.original_string: protected XMLEventReader xmlEventReader;
focal_class.type: XMLEventReader
focal_class.var_name: xmlEventReader
focal_class.declarator: fileReader
focal_class.modifier: protected
focal_class.original_string: protected Reader fileReader;
focal_class.type: Reader
focal_class.var_name: fileReader
focal_class.declarator: graphTransformer
focal_class.modifier: protected
focal_class.original_string: protected Function<GraphMetadata, G> graphTransformer;
focal_class.type: Function<GraphMetadata, G>
focal_class.var_name: graphTransformer
focal_class.declarator: nodeTransformer
focal_class.modifier: protected
focal_class.original_string: protected Function<NodeMetadata, N> nodeTransformer;
focal_class.type: Function<NodeMetadata, N>
focal_class.var_name: nodeTransformer
focal_class.declarator: edgeTransformer
focal_class.modifier: protected
focal_class.original_string: protected Function<EdgeMetadata, E> edgeTransformer;
focal_class.type: Function<EdgeMetadata, E>
focal_class.var_name: edgeTransformer
focal_class.declarator: initialized
focal_class.modifier: protected
focal_class.original_string: protected boolean initialized;
focal_class.type: boolean
focal_class.var_name: initialized
focal_class.declarator: document = new GraphMLDocument()
focal_class.modifier: protected final
focal_class.original_string: protected final GraphMLDocument document = new GraphMLDocument();
focal_class.type: GraphMLDocument
focal_class.var_name: document
focal_class.declarator: parserRegistry
focal_class.modifier: protected final
focal_class.original_string: protected final ElementParserRegistry<G, N, E> parserRegistry;
focal_class.type: ElementParserRegistry<G, N, E>
focal_class.var_name: parserRegistry
focal_class.declarator: inputStream
focal_class.modifier: private
focal_class.original_string: private InputStream inputStream;
focal_class.type: InputStream
focal_class.var_name: inputStream
focal_class.file: jung-io/src/main/java/edu/uci/ics/jung/io/graphml/GraphMLReader2.java
focal_class.identifier: GraphMLReader2
focal_class.interfaces: implements GraphReader<G, N, E>
focal_class.class_method_signature: GraphMLReader2.GraphMLReader2(
        Reader fileReader,
        Function<GraphMetadata, G> graphTransformer,
        Function<NodeMetadata, N> nodeTransformer,
        Function<EdgeMetadata, E> edgeTransformer)
focal_class.full_signature: public  GraphMLReader2(
        Reader fileReader,
        Function<GraphMetadata, G> graphTransformer,
        Function<NodeMetadata, N> nodeTransformer,
        Function<EdgeMetadata, E> edgeTransformer)
focal_class.identifier: GraphMLReader2
focal_class.modifiers: public
focal_class.parameters: (
        Reader fileReader,
        Function<GraphMetadata, G> graphTransformer,
        Function<NodeMetadata, N> nodeTransformer,
        Function<EdgeMetadata, E> edgeTransformer)
focal_class.signature:  GraphMLReader2(
        Reader fileReader,
        Function<GraphMetadata, G> graphTransformer,
        Function<NodeMetadata, N> nodeTransformer,
        Function<EdgeMetadata, E> edgeTransformer)
focal_class.class_method_signature: GraphMLReader2.GraphMLReader2(
        InputStream inputStream,
        Function<GraphMetadata, G> graphTransformer,
        Function<NodeMetadata, N> nodeTransformer,
        Function<EdgeMetadata, E> edgeTransformer)
focal_class.full_signature: public  GraphMLReader2(
        InputStream inputStream,
        Function<GraphMetadata, G> graphTransformer,
        Function<NodeMetadata, N> nodeTransformer,
        Function<EdgeMetadata, E> edgeTransformer)
focal_class.identifier: GraphMLReader2
focal_class.modifiers: public
focal_class.parameters: (
        InputStream inputStream,
        Function<GraphMetadata, G> graphTransformer,
        Function<NodeMetadata, N> nodeTransformer,
        Function<EdgeMetadata, E> edgeTransformer)
focal_class.signature:  GraphMLReader2(
        InputStream inputStream,
        Function<GraphMetadata, G> graphTransformer,
        Function<NodeMetadata, N> nodeTransformer,
        Function<EdgeMetadata, E> edgeTransformer)
focal_class.class_method_signature: GraphMLReader2.getGraphTransformer()
focal_class.full_signature: public Function<GraphMetadata, G> getGraphTransformer()
focal_class.identifier: getGraphTransformer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Function<GraphMetadata, G>
focal_class.signature: Function<GraphMetadata, G> getGraphTransformer()
focal_class.class_method_signature: GraphMLReader2.getNodeTransformer()
focal_class.full_signature: public Function<NodeMetadata, N> getNodeTransformer()
focal_class.identifier: getNodeTransformer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Function<NodeMetadata, N>
focal_class.signature: Function<NodeMetadata, N> getNodeTransformer()
focal_class.class_method_signature: GraphMLReader2.getEdgeTransformer()
focal_class.full_signature: public Function<EdgeMetadata, E> getEdgeTransformer()
focal_class.identifier: getEdgeTransformer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Function<EdgeMetadata, E>
focal_class.signature: Function<EdgeMetadata, E> getEdgeTransformer()
focal_class.class_method_signature: GraphMLReader2.init()
focal_class.full_signature: public void init()
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: GraphMLReader2.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: GraphMLReader2.getGraphMLDocument()
focal_class.full_signature: public GraphMLDocument getGraphMLDocument()
focal_class.identifier: getGraphMLDocument
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: GraphMLDocument
focal_class.signature: GraphMLDocument getGraphMLDocument()
focal_class.class_method_signature: GraphMLReader2.readGraph()
focal_class.full_signature: @SuppressWarnings("unchecked") public G readGraph()
focal_class.identifier: readGraph
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: ()
focal_class.return: G
focal_class.signature: G readGraph()
focal_method.body: public GraphMLDocument getGraphMLDocument() {
      return document;
    }
focal_method.class_method_signature: GraphMLReader2.getGraphMLDocument()
focal_method.full_signature: public GraphMLDocument getGraphMLDocument()
focal_method.identifier: getGraphMLDocument
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: GraphMLDocument
focal_method.signature: GraphMLDocument getGraphMLDocument()