Codota Logo
NodeImpl
Code IndexAdd Codota to your IDE (free)

How to use
NodeImpl
in
obvious.impl

Best Java code snippets using obvious.impl.NodeImpl (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: com.googlecode.obvious/obvious-ivtk

/**
 * Returns a collection of all nodes of the graph.
 * @return all nodes of the graph
 */
public Collection<Node> getNodes() {
 Collection<Node> nodes = new ArrayList<Node>();
 DynamicTable baseTable = graph.getVertexTable();
 Table nodeTable = new IvtkObviousTable(baseTable);
 for (int i = 0; i < nodeTable.getRowCount(); i++) {
  nodes.add(new NodeImpl(nodeTable, i));
 }
 return nodes;
}
origin: com.googlecode.obvious/obviousx

Node node = (Node) new NodeImpl(nodeSchema,
  nodeAttr);
network.addNode(node);
origin: com.googlecode.obvious/obvious-prefuse

@Override
public Node addNode() {
 Object[] values = new Object[nodeSchema.getColumnCount()];
 for (int i = 0; i < nodeSchema.getColumnCount(); i++) {
  values[i] = nodeSchema.getColumnDefault(i);
 }
 NodeImpl node = new NodeImpl(nodeSchema, values);
 network.addNode(node);
 return new WrapToPrefNode(network, node, getNodeCount());
}
origin: com.googlecode.obvious/obvious-prefuse

/**
 * Returns an obvious node corresponding to a prefuse node.
 * @param node prefuse node
 * @return an obvious node
 */
private obvious.data.Node getObviousNode(Node node) {
 Object[] values = new Object[node.getSchema().getColumnCount()];
 for (int i = 0; i < node.getSchema().getColumnCount(); i++) {
  values[i] = node.get(node.getSchema().getColumnName(i));
 }
 return new NodeImpl(nodeSchema, values);
}
origin: com.googlecode.obvious/obviousx

/**
 * Loads the table with the data of external CSV files.
 * @return an obvious network
 * @throws ObviousxException when exception occurs
 */
public Network loadGraph() throws ObviousxException {
 CSVTableImport nodeImport = new CSVTableImport(nodeFile, new TableImpl(nodeSchema),
   separator);
 CSVTableImport edgeImport = new CSVTableImport(edgeFile, new TableImpl(edgeSchema),
   separator);
 Table nodeTable = nodeImport.loadTable();
 Table edgeTable = edgeImport.loadTable();
 for (int i = 0; i < nodeTable.getRowCount(); i++) {
  Node node = new NodeImpl(nodeTable, i);
  network.addNode(node);
  if (nodeId == null) {
   idToNode.put(node.getRow(), node);
  } else {
   idToNode.put(node.get(nodeId), node);
  }
 }
 for (int i = 0; i < edgeTable.getRowCount(); i++) {
  Edge edge = new EdgeImpl(edgeTable, i);
  network.addEdge(edge, idToNode.get(edge.get(sourceCol)),
    idToNode.get(edge.get(targetCol)),
    network.getEdgeType(edge));
 }
 return this.network;
}
obvious.implNodeImpl

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now