graphlab.wrapper
Class PythonGraph

java.lang.Object
  extended by graphlab.SparseGraph
      extended by graphlab.wrapper.PythonGraph
All Implemented Interfaces:
Graph

public class PythonGraph
extends SparseGraph

Wrapper object for python graphs. Allows storing any python (Jython) type in vertex and edges.

Author:
akyrola

Nested Class Summary
static class PythonGraph.PythonEdge
           
static class PythonGraph.PythonVertex
           
 
Field Summary
 
Fields inherited from class graphlab.SparseGraph
vertices
 
Constructor Summary
PythonGraph()
           
 
Method Summary
 void addEdge(int from, int to, org.python.core.PyObject value)
           
 int addVertex(org.python.core.PyObject val)
           
 
Methods inherited from class graphlab.SparseGraph
addEdge, addVertex, addVertex, checksize, children, finalizeGraph, getEdge, getNumOfVertices, getVertex, getVertices, isColoringEnabled, parents, setVertexColor, toString, vertices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PythonGraph

public PythonGraph()
Method Detail

addVertex

public int addVertex(org.python.core.PyObject val)

addEdge

public void addEdge(int from,
                    int to,
                    org.python.core.PyObject value)