relational.types
Class BipartiteNode

java.lang.Object
  extended byedu.uci.ics.jung.utils.UserData
      extended byedu.uci.ics.jung.graph.impl.AbstractSparseVertex
          extended byedu.uci.ics.jung.graph.impl.SimpleSparseVertex
              extended byedu.uci.ics.jung.graph.impl.SparseVertex
                  extended byedu.uci.ics.jung.graph.impl.BipartiteVertex
                      extended byrelational.types.BipartiteNode
All Implemented Interfaces:
edu.uci.ics.jung.graph.ArchetypeVertex, java.lang.Cloneable, edu.uci.ics.jung.graph.Element, edu.uci.ics.jung.utils.UserDataContainer, edu.uci.ics.jung.graph.Vertex

public class BipartiteNode
extends edu.uci.ics.jung.graph.impl.BipartiteVertex

Builds bipartite Node und contains methods to find neighbors in the graph.


Nested Class Summary
 
Nested classes inherited from class edu.uci.ics.jung.utils.UserDataContainer
edu.uci.ics.jung.utils.UserDataContainer.CopyAction
 
Field Summary
 
Fields inherited from class edu.uci.ics.jung.utils.UserData
CLONE, REMOVE, SHARED
 
Constructor Summary
BipartiteNode(int id)
           
BipartiteNode(int id, weka.core.FastVector categories)
           
BipartiteNode(int id, int label)
           
BipartiteNode(java.lang.String name)
           
BipartiteNode(java.lang.String sid, weka.core.FastVector categories)
           
BipartiteNode(java.lang.String sid, int label)
           
 
Method Summary
 weka.core.FastVector getCategories()
           
 int getId()
           
 int getLabel()
           
 java.lang.String getName()
           
 java.util.HashSet getNeighbors2Hop()
          Finds the neighbors of the same node type in a bipartite graph
 void setCategories(weka.core.FastVector categories)
           
 void setId(int id)
           
 void setLabel(int label)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class edu.uci.ics.jung.graph.impl.BipartiteVertex
copy
 
Methods inherited from class edu.uci.ics.jung.graph.impl.SparseVertex
findEdge, findEdgeSet, getInEdges, getOutEdges
 
Methods inherited from class edu.uci.ics.jung.graph.impl.SimpleSparseVertex
getPredecessors, getSuccessors, inDegree, isDest, isPredecessorOf, isSource, isSuccessorOf, numPredecessors, numSuccessors, outDegree
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractSparseVertex
degree, equals, findEdge, findEdgeSet, getEqualVertex, getEquivalentVertex, getGraph, getIncidentEdges, getNeighbors, hashCode, isIncident, isNeighborOf, numNeighbors, toString
 
Methods inherited from class edu.uci.ics.jung.utils.UserData
addUserDatum, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatum
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.uci.ics.jung.utils.UserDataContainer
addUserDatum, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatum
 

Constructor Detail

BipartiteNode

public BipartiteNode(int id)

BipartiteNode

public BipartiteNode(java.lang.String name)

BipartiteNode

public BipartiteNode(int id,
                     int label)

BipartiteNode

public BipartiteNode(int id,
                     weka.core.FastVector categories)

BipartiteNode

public BipartiteNode(java.lang.String sid,
                     int label)

BipartiteNode

public BipartiteNode(java.lang.String sid,
                     weka.core.FastVector categories)
Method Detail

getNeighbors2Hop

public java.util.HashSet getNeighbors2Hop()
Finds the neighbors of the same node type in a bipartite graph

Returns:
neighbors

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int id)
Parameters:
id - The id to set.

getLabel

public int getLabel()
Returns:
Returns the label.

setLabel

public void setLabel(int label)
Parameters:
label - The label to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getCategories

public weka.core.FastVector getCategories()
Returns:
Returns the categories.

setCategories

public void setCategories(weka.core.FastVector categories)
Parameters:
categories - The categories to set.