GraphLab Project

graphlab.library.algorithms.util
Class LibraryUtils

java.lang.Object
  extended by graphlab.library.algorithms.util.LibraryUtils

public class LibraryUtils
extends java.lang.Object

See Also:
AlgorithmUtils

Constructor Summary
LibraryUtils()
           
 
Method Summary
static void algorithmStep(Algorithm a, java.lang.String message)
           
static
<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
BaseGraph<VertexType,EdgeType>
complement(BaseGraph<VertexType,EdgeType> g1)
           
static
<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
BaseGraph<VertexType,EdgeType>
edgeInduced(BaseGraph<VertexType,EdgeType> g, java.util.Collection<EdgeType> S)
           
static
<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
boolean
falsifyEdgeMarks(BaseGraph<VertexType,EdgeType> g)
           
static
<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
boolean
falsifyVertexMarks(BaseGraph<VertexType,EdgeType> g)
           
static
<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
boolean[]
getVertexMarks(BaseGraph<VertexType,EdgeType> g)
          returns all vertex marks in a array
static
<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
BaseGraph<VertexType,EdgeType>
induced(BaseGraph<VertexType,EdgeType> g, java.util.Collection<VertexType> S)
           
static
<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
BaseGraph<VertexType,EdgeType>
join(BaseGraph<VertexType,EdgeType> g1, BaseGraph<VertexType,EdgeType> g2)
           
static
<VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>>
void
setVertexMarks(BaseGraph<VertexType,EdgeType> g, boolean[] verexMarks)
          sets all the vertex marks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryUtils

public LibraryUtils()
Method Detail

falsifyEdgeMarks

public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> boolean falsifyEdgeMarks(BaseGraph<VertexType,EdgeType> g)

falsifyVertexMarks

public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> boolean falsifyVertexMarks(BaseGraph<VertexType,EdgeType> g)

complement

public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> BaseGraph<VertexType,EdgeType> complement(BaseGraph<VertexType,EdgeType> g1)
See Also:
GraphComplement.complement(graphlab.library.BaseGraph)

edgeInduced

public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> BaseGraph<VertexType,EdgeType> edgeInduced(BaseGraph<VertexType,EdgeType> g,
                                                                                                                               java.util.Collection<EdgeType> S)
See Also:
EdgeInduced.edgeInduced(graphlab.library.BaseGraph,java.util.Collection)

induced

public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> BaseGraph<VertexType,EdgeType> induced(BaseGraph<VertexType,EdgeType> g,
                                                                                                                           java.util.Collection<VertexType> S)
See Also:
VertexInduced.induced(graphlab.library.BaseGraph,java.util.Collection)

join

public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> BaseGraph<VertexType,EdgeType> join(BaseGraph<VertexType,EdgeType> g1,
                                                                                                                        BaseGraph<VertexType,EdgeType> g2)
See Also:
graphlab.library.algorithms.goperators.GraphUnion#join(graphlab.library.BaseGraph,graphlab.library.BaseGraph)

algorithmStep

public static void algorithmStep(Algorithm a,
                                 java.lang.String message)
See Also:
EventUtils.algorithmStep(graphlab.library.algorithms.Algorithm,String)

getVertexMarks

public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> boolean[] getVertexMarks(BaseGraph<VertexType,EdgeType> g)
returns all vertex marks in a array


setVertexMarks

public static <VertexType extends BaseVertex,EdgeType extends BaseEdge<VertexType>> void setVertexMarks(BaseGraph<VertexType,EdgeType> g,
                                                                                                        boolean[] verexMarks)
sets all the vertex marks


GraphLab Project