노드 레이블 아래에서 상태 속성을 표시하려고합니다.graphviz의 오브젝트 속성
그것은 다음과 같이 현재의 : 나는 더 많거나 적은 같은 그것을 보여주고 싶은
Graph = new Graph<State>();
var a = new State()
{
Status = "Ready",
AllowedPurchaserOperations = "operation1, operation2",
AllowedSupplierOperations = "operarion1, operation 3"
};
var b = new State()
{
Status = "Paused",
AllowedPurchaserOperations = "operation1, operation2",
AllowedSupplierOperations = "operarion1, operation 3"
};
Graph.AddVertex(a);
Graph.AddVertex(b);
Graph.AddEdge(new Edge<State>(a, b) {Label = "pause()"});
Graph.AddEdge(new Edge<State>(b, a) {Label = "continue()"});
:
________________________ ________________________
| | pause() | |
| |------------>| |
| | continue() | |
|________________________|<------------|________________________|
나는 코드가
________________________ ________________________
| Ready | pause() | Paused |
| operation1, operation2 |------------>| operation1, operation2 |
| operation1, operation3 | continue() | operation1, operation3 |
|________________________|<------------|________________________|
는 어렵다으로 graphviz를 사용하여 구현 예제를 찾으십시오. 노드에 값을 추가하는 방법을 모르겠습니다. 누군가 그것을 변환하기 전에해야 할 일을 알고 있습니까?
QuickGraph를 사용하고 있습니까? – marapet
@marapet graphviz4net을 사용 중입니다. – Th3B0Y
불행히도 질문에 graphviz4net 태그가 지정되지 않았지만, 늦어도 좋을만큼 좋습니다. WPF에서 그래프 요소를 사용자 정의하는 방법에 대한 간단한 기사 : http://graphviz4net.codeplex.com/wikipage?title=Customization%20of%20various%20graph%20elements&referringTitle=Documentation – Steves