congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IndexedGraph.getVertex
Code IndexAdd Tabnine to your IDE (free)

How to use
getVertex
method
in
cascading.flow.planner.iso.finder.IndexedGraph

Best Java code snippets using cascading.flow.planner.iso.finder.IndexedGraph.getVertex (Showing top 6 results out of 315)

origin: cwensel/cascading

public Integer getIndex( Object result )
 {
 Integer index = reverse.get( result );
 if( index != null )
  return index;
 while( iterator.hasNext() )
  {
  if( getVertex( count + 1 ) == result )
   break;
  }
 return count;
 }
origin: cwensel/cascading

public Edge getEdge( int lhsVertex, int rhsVertex )
 {
 Node lhsNode = getVertex( lhsVertex );
 Node rhsNode = getVertex( rhsVertex );
 return getDelegate().getEdge( lhsNode, rhsNode );
 }
origin: cwensel/cascading

@Override
public Set<Edge> getAllEdges( Object sourceVertex, Object targetVertex )
 {
 Node lhsNode = getVertex( (int) sourceVertex );
 Node rhsNode = getVertex( ( (int) targetVertex ) );
 return getDelegate().getAllEdges( lhsNode, rhsNode );
 }
origin: cwensel/cascading

public boolean containsEdge( int lhsVertex, int rhsVertex )
 {
 return getDelegate().containsEdge( getVertex( lhsVertex ), getVertex( rhsVertex ) );
 }
origin: cwensel/cascading

public Set<Integer> getSuccessors( int vertex )
 {
 Set<Integer> results = successors.get( vertex );
 if( results != null )
  return results;
 results = new HashSet<>();
 Set<Edge> edges = getDelegate().outgoingEdgesOf( getVertex( vertex ) );
 for( Edge edge : edges )
  {
  Object result = getEdgeTarget( edge );
  Integer value = getIndex( result );
  if( value != null )
   results.add( value );
  }
 successors.put( vertex, results );
 return results;
 }
origin: cwensel/cascading

public Set<Integer> getPredecessors( int vertex )
 {
 Set<Integer> results = predecessors.get( vertex );
 if( results != null )
  return results;
 results = new HashSet<>();
 Set<Edge> edges = getDelegate().incomingEdgesOf( getVertex( vertex ) );
 for( Edge edge : edges )
  {
  Object result = getEdgeSource( edge );
  Integer value = getIndex( result );
  if( value != null )
   results.add( value );
  }
 predecessors.put( vertex, results );
 return results;
 }
cascading.flow.planner.iso.finderIndexedGraphgetVertex

Popular methods of IndexedGraph

  • getAllEdges
  • getAllEdgesList
  • getDelegate
  • getEdgeSource
  • getEdgeTarget
  • getIndex
  • getIterator
  • vertexSet

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • getContentResolver (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now