edu.uci.ics.jung.graph.Graph.findEdgeSet()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(227)

本文整理了Java中edu.uci.ics.jung.graph.Graph.findEdgeSet()方法的一些代码示例,展示了Graph.findEdgeSet()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.findEdgeSet()方法的具体详情如下:
包路径:edu.uci.ics.jung.graph.Graph
类名称:Graph
方法名:findEdgeSet

Graph.findEdgeSet介绍

暂无

代码示例

代码示例来源:origin: geogebra/geogebra

/**
 * @see edu.uci.ics.jung.graph.Hypergraph#findEdgeSet(java.lang.Object,
 *      java.lang.Object)
 */
@Override
public Collection<E> findEdgeSet(V v1, V v2) {
  return delegate.findEdgeSet(v1, v2);
}

代码示例来源:origin: net.sf.jung/jung-api

/**
 * @see edu.uci.ics.jung.graph.Hypergraph#findEdgeSet(java.lang.Object, java.lang.Object)
 */
public synchronized Collection<E> findEdgeSet(V v1, V v2)
{
  return delegate.findEdgeSet(v1, v2);
}

代码示例来源:origin: net.sf.jung/jung-api

/**
 * @see edu.uci.ics.jung.graph.Hypergraph#findEdgeSet(java.lang.Object, java.lang.Object)
 */
public Collection<E> findEdgeSet(V v1, V v2)
{
  return delegate.findEdgeSet(v1, v2);
}

代码示例来源:origin: geogebra/geogebra

/**
 * @see edu.uci.ics.jung.graph.Hypergraph#findEdgeSet(java.lang.Object,
 *      java.lang.Object)
 */
@Override
public synchronized Collection<E> findEdgeSet(V v1, V v2) {
  return delegate.findEdgeSet(v1, v2);
}

代码示例来源:origin: geogebra/geogebra

/**
 * @see edu.uci.ics.jung.graph.Hypergraph#findEdgeSet(java.lang.Object,
 *      java.lang.Object)
 */
@Override
public Collection<E> findEdgeSet(V v1, V v2) {
  return delegate.findEdgeSet(v1, v2);
}

代码示例来源:origin: net.sf.jung/jung-api

/**
 * @see edu.uci.ics.jung.graph.Hypergraph#findEdgeSet(java.lang.Object, java.lang.Object)
 */
public Collection<E> findEdgeSet(V v1, V v2) {
  return delegate.findEdgeSet(v1, v2);
}

代码示例来源:origin: net.sourceforge.jadex/jadex-tools-comanalyzer

/**
 * Returns a collection of edges between the two vertices.
 * @param v1 The first vertex.
 * @param v2 The second vertex.
 * @return The collection of edges or <code>null</code> if there is no
 * incident edge between the vertices.
 */
public Collection findEdgeSet(Object v1, Object v2)
{
  return delegate.findEdgeSet(v1, v2);
}

代码示例来源:origin: net.sf.jung/jung-visualization

public Collection<E> findEdgeSet(V v1, V v2) {
  return graph.findEdgeSet(v1, v2);
}
public EdgeType getDefaultEdgeType() {

代码示例来源:origin: girtel/Net2Plan

/** Check whether the topology has the same number of links between each node pair in both directions (assuming multi-digraphs).
 * 
 * @param graph The graph to analyze
 * @return {@code true} if the graph is bidirectional, and false otherwise */
public static boolean isBidirectional(Graph graph)
{
  Object[] vertices = graph.getVertices().toArray();
  for (int v1 = 0; v1 < vertices.length; v1++)
  {
    for (int v2 = v1 + 1; v2 < vertices.length; v2++)
    {
      if (graph.findEdgeSet(vertices[v1], vertices[v2]).size() != graph.findEdgeSet(vertices[v2], vertices[v1]).size()) return false;
    }
  }
  return true;
}

代码示例来源:origin: girtel/Net2Plan

/** Check whether the graph is simple, that is, if it has at most one link between each node pair (one per direction under directed graphs, one under undirected graphs).
 * 
 * @param graph The graph to analyze
 * @return {@code true} if the graph is simple, and false otherwise */
public static boolean isSimple(Graph graph)
{
  Object[] vertices = graph.getVertices().toArray();
  for (int v1 = 0; v1 < vertices.length; v1++)
  {
    for (int v2 = v1 + 1; v2 < vertices.length; v2++)
    {
      if (graph.findEdgeSet(vertices[v1], vertices[v2]).size() > 1) return false;
      if (graph.findEdgeSet(vertices[v2], vertices[v1]).size() > 1) return false;
    }
  }
  return true;
}

代码示例来源:origin: girtel/Net2Plan

Collection<E> links_12 = graph.findEdgeSet((V) vertices[v1], (V) vertices[v2]);
Collection<E> links_21 = graph.findEdgeSet((V) vertices[v2], (V) vertices[v1]);

代码示例来源:origin: girtel/Net2Plan

Collection<E> edges = graph.findEdgeSet(originVertex, destinationVertex);
if (edges.isEmpty()) continue;

代码示例来源:origin: net.sourceforge.jadex/jadex-tools-comanalyzer

comedgeset.addAll(graph.findEdgeSet(ep.getFirst(), ep.getSecond()));

代码示例来源:origin: girtel/Net2Plan

Collection<Link> downstreamLinks = graph.findEdgeSet(nodeId_1, nodeId_2);
Collection<Link> upstreamLinks = graph.findEdgeSet(nodeId_2, nodeId_1);
if (downstreamLinks.size() != upstreamLinks.size()) throw new Net2PlanException("Link map must be bidirectional (same number of links on each direction)");

代码示例来源:origin: com.projectdarkstar.server/sgs-server

Collection<WeightedEdge> edges = graph.findEdgeSet(v1, v2);
for (WeightedEdge edge : edges) {
  ingroup = ingroup + (edge.getWeight() * 2);

代码示例来源:origin: dworkin/reddwarf

Collection<WeightedEdge> edges = graph.findEdgeSet(v1, v2);
for (WeightedEdge edge : edges) {
  ingroup = ingroup + (edge.getWeight() * 2);

代码示例来源:origin: org.reddwarfserver.server/sgs-server

Collection<WeightedEdge> edges = graph.findEdgeSet(v1, v2);
for (WeightedEdge edge : edges) {
  ingroup = ingroup + (edge.getWeight() * 2);

相关文章