de.uni_leipzig.cvk.data
Class GraphMLReaderMod

java.lang.Object
  extended by prefuse.data.io.AbstractGraphReader
      extended by de.uni_leipzig.cvk.data.GraphMLReaderMod
All Implemented Interfaces:
GraphReaderSettings, prefuse.data.io.GraphReader

public class GraphMLReaderMod
extends prefuse.data.io.AbstractGraphReader
implements prefuse.data.io.GraphReader, GraphReaderSettings

GraphReader instance that reads in graph file formatted using the GraphML file format. GraphML is an XML format supporting graph structure and typed data schemas for both nodes and edges. For more information about the format, please see the GraphML home page.

The GraphMLReaderMod class is a very simple modification of prefuse GraphMLReader class. The modified class keeps the column for node labels in the edges table and this table is used to transform the file with EdgeListGraphReader class to a delimiter separated text file to use for the algorithms.

Author:
jeffrey heer, rspeck (modified)
 

Nested Class Summary
static class GraphMLReaderMod.GraphMLHandler
          A SAX Parser for GraphML data files.
static interface GraphMLReaderMod.Tokens
          String tokens used in the GraphML format.
 
Field Summary
 
Fields inherited from interface de.uni_leipzig.cvk.data.GraphReaderSettings
EDGE_WEIGHT, MAX_EDGE_WEIGHT, NODE_NAME
 
Constructor Summary
GraphMLReaderMod()
           
 
Method Summary
 prefuse.data.Graph readGraph(java.io.InputStream is)
           
 
Methods inherited from class prefuse.data.io.AbstractGraphReader
readGraph, readGraph, readGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface prefuse.data.io.GraphReader
readGraph, readGraph, readGraph
 

Constructor Detail

GraphMLReaderMod

public GraphMLReaderMod()
Method Detail

readGraph

public prefuse.data.Graph readGraph(java.io.InputStream is)
                             throws prefuse.data.io.DataIOException
Specified by:
readGraph in interface prefuse.data.io.GraphReader
Specified by:
readGraph in class prefuse.data.io.AbstractGraphReader
Throws:
prefuse.data.io.DataIOException
See Also:
GraphReader.readGraph(java.io.InputStream)