当前位置: 首页>>代码示例>>Java>>正文


Java AbstractMultiDirectedGraph类代码示例

本文整理汇总了Java中org.jbpt.graph.abs.AbstractMultiDirectedGraph的典型用法代码示例。如果您正苦于以下问题:Java AbstractMultiDirectedGraph类的具体用法?Java AbstractMultiDirectedGraph怎么用?Java AbstractMultiDirectedGraph使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AbstractMultiDirectedGraph类属于org.jbpt.graph.abs包,在下文中一共展示了AbstractMultiDirectedGraph类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: serialize

import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
public String serialize(AbstractMultiDirectedGraph<?, ?> digraph,
		boolean asDirected) {
	StringBuffer buff = new StringBuffer(digraph.getEdges().size() + 2);

	buff.append(getHeader(asDirected, digraph));

	for (IVertex v : digraph.getVertices()) {
			buff.append(String.format(NODE, v.getId().replace("-", ""),
					v.getLabel(), getNodeDecorator().decorate(v)));	
	}

	for (IDirectedEdge<?> e : digraph.getEdges()) {
		String edge = asDirected ? "->" : "--";
		buff.append(String.format(EDGE,
				e.getSource().getId().replace("-", ""), edge, e.getTarget()
						.getId().replace("-", ""), e.getLabel(), getEdgeDecorator().decorate(e)));
	}
	buff.append(ENDGRAPH);
	return buff.toString();
}
 
开发者ID:jbpt,项目名称:codebase,代码行数:21,代码来源:DotSerializer.java

示例2: DirectedBPMNEdge

import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
protected DirectedBPMNEdge(final AbstractMultiDirectedGraph<?, AbstractBPMNElement> g, final AbstractBPMNElement source, final AbstractBPMNElement target) {
	super(g, source, target);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:4,代码来源:DirectedBPMNEdge.java

示例3: DirectedEdge

import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
protected DirectedEdge(AbstractMultiDirectedGraph<?, Vertex> g, Vertex source, Vertex target) {
	super(g, source, target);
}
 
开发者ID:jbpt,项目名称:codebase,代码行数:4,代码来源:DirectedEdge.java

示例4: DataConnection

import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
public DataConnection(AbstractMultiDirectedGraph<?, V> g, V source, V target) {
	super(g, source, target);
}
 
开发者ID:jbpt,项目名称:codebase,代码行数:4,代码来源:DataConnection.java

示例5: StateTransition

import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public StateTransition(AbstractMultiDirectedGraph g, State source, State target) {
	super(g, source, target);
}
 
开发者ID:jbpt,项目名称:codebase,代码行数:5,代码来源:StateTransition.java

示例6: AbstractStateTransition

import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public AbstractStateTransition(AbstractMultiDirectedGraph g, S source, S target) {
	super(g, source, target);
}
 
开发者ID:jbpt,项目名称:codebase,代码行数:5,代码来源:AbstractStateTransition.java

示例7: ControlFlow

import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
/**
 * Create a new {@link ControlFlow} edge with the given parameter.
 * @param graph the graph this edge should belong to
 * @param from source node of this edge
 * @param to target node of this edge
 */
public ControlFlow(AbstractMultiDirectedGraph<?, V> graph, V from, V to) {
	super(graph, from, to);
}
 
开发者ID:jbpt,项目名称:codebase,代码行数:10,代码来源:ControlFlow.java


注:本文中的org.jbpt.graph.abs.AbstractMultiDirectedGraph类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。