All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yworks.util.graph.Node Maven / Gradle / Ivy

package com.yworks.util.graph;

import java.util.ArrayList;
import java.util.List;

/**
 * Package-private class used by DefaultNetwork to represent an Node.
 */
class Node {
  private final List inEdges = new ArrayList<>();
  private final List outEdges = new ArrayList<>();

  public List getInEdges() {
    return inEdges;
  }

  public List getOutEdges() {
    return outEdges;
  }

  public void addInEdge(Object edge) {
    inEdges.add((Edge) edge);
  }

  public void addOutEdge(Object edge) {
    outEdges.add((Edge) edge);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy