bicliqueviz
Class BiGraph
java.lang.Object
bicliqueviz.BiGraph
public class BiGraph
- extends java.lang.Object
This class represents the bigraph
- Author:
- Martin Schwartz
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BiGraph
public BiGraph(BiCliqueWin w,
java.awt.Dimension d)
- Parameters:
w - pointer to the GUI windowd - the dimensions of the panel which will contain the graph
getVV
public edu.uci.ics.jung.visualization.VisualizationViewer<VertexObj,EdgeObj> getVV()
- Returns:
- the visualisation viewer
getInfoFile
public java.util.Hashtable<IDNodeTypePair,VertexObj> getInfoFile()
- Returns:
- the info file hash table
clearGraph
public void clearGraph()
- clears the graph
getZoomPane
public edu.uci.ics.jung.visualization.GraphZoomScrollPane getZoomPane()
- Returns:
- the zoom scrollpane
getGraph
public edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> getGraph()
- Returns:
- the graph object
getGraphLayout
public edu.uci.ics.jung.algorithms.layout.FRLayout<VertexObj,EdgeObj> getGraphLayout()
- Returns:
- the graph layout
getPickedVertices
public java.util.Set<VertexObj> getPickedVertices()
- Returns:
- the selected vertices in the graph
findCommunities
public javax.swing.JList findCommunities(java.util.Set<VertexObj> set)
- Parameters:
set - the set of selected vertices
- Returns:
- the list of all communities that contain all selected vertices in them
setLabelSize
public void setLabelSize(int s)
- Parameters:
s - size for the labels
setScaling
public void setScaling(boolean b)
- Parameters:
b - boolean for if scaling should be set or not
setScaleSize
public void setScaleSize(int d)
- Parameters:
d - the size for the scaling
selectPartOfGraph
public void selectPartOfGraph(edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> g)
- Parameters:
g - part-graph to be selected
createBiclique
public edu.uci.ics.jung.graph.UndirectedSparseGraph<VertexObj,EdgeObj> createBiclique(java.util.Vector<Biclique> bs)
- Parameters:
bs - biclique to be converted to a graph object
- Returns:
- a graph object of the biclique
changeGraph
public void changeGraph(edu.uci.ics.jung.graph.Graph<VertexObj,EdgeObj> g)
- Parameters:
g - the new graph to substitute the old one
setVertexLocations
public void setVertexLocations(int numOfA,
int numOfB)
- Sets locations of the vertices in the graph
- Parameters:
numOfA - number of Node AnumOfB - number of Node B