本文整理汇总了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();
}
示例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);
}
示例3: DirectedEdge
import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
protected DirectedEdge(AbstractMultiDirectedGraph<?, Vertex> g, Vertex source, Vertex target) {
super(g, source, target);
}
示例4: DataConnection
import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
public DataConnection(AbstractMultiDirectedGraph<?, V> g, V source, V target) {
super(g, source, target);
}
示例5: StateTransition
import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public StateTransition(AbstractMultiDirectedGraph g, State source, State target) {
super(g, source, target);
}
示例6: AbstractStateTransition
import org.jbpt.graph.abs.AbstractMultiDirectedGraph; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public AbstractStateTransition(AbstractMultiDirectedGraph g, S source, S target) {
super(g, source, target);
}
示例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);
}