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

How to use
writeGraphNode
method
in
org.jboss.windup.graph.renderer.graphlib.GraphlibWriter

Best Java code snippets using org.jboss.windup.graph.renderer.graphlib.GraphlibWriter.writeGraphNode (Showing top 2 results out of 315)

origin: org.jboss.windup/windup-grapher

  private void writeGraphNodes(OutputStream os) throws IOException {

    //iterate the nodes.
    for(Vertex vertex : graph.getVertices()) {
      String id = ""+vertex.getId().hashCode();
      String label = vertex.getProperty(vertexLabelProperty);
      
      Set<String> clzSet = new HashSet<String>();
      Boolean blacklist = (Boolean)vertex.getProperty("blacklist");
      if(blacklist != null && blacklist) {
        clzSet.add("blacklisted");
      }
      
      if(StringUtils.isBlank(label)) {
        label = vertex.toString();
      }
      writeGraphNode(id, label, clzSet, os);
    }
    
  }
}
origin: org.jboss.windup.legacy.application/grapher

  private void writeGraphNodes(OutputStream os) throws IOException {

    //iterate the nodes.
    for(Vertex vertex : graph.getVertices()) {
      String id = ""+vertex.getId().hashCode();
      String label = vertex.getProperty(vertexLabelProperty);
      
      Set<String> clzSet = new HashSet<String>();
      Boolean blacklist = (Boolean)vertex.getProperty("blacklist");
      if(blacklist != null && blacklist) {
        clzSet.add("blacklisted");
      }
      
      if(StringUtils.isBlank(label)) {
        label = vertex.toString();
      }
      writeGraphNode(id, label, clzSet, os);
    }
    
  }
}
org.jboss.windup.graph.renderer.graphlibGraphlibWriterwriteGraphNode

Popular methods of GraphlibWriter

  • <init>
  • writeGraphEdge
  • writeGraphEdges
  • writeGraphNodes

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Notification (javax.management)
  • Top 12 Jupyter Notebook extensions
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