File talk:Aggregation-Composition3.png

出自Wikimedia Commons
跳至導覽 跳至搜尋

Graphviz alternative

[編輯]

It doesn't look like Graphviz was used to create this diagram, but it can draw something similar.

Here is the code for it:

digraph G
{
	graph[rankdir=LR, ranksep=1];
	node[shape=record];

	edge[arrowhead=none];

	U[label="University||"];
	D[label="Department||"];
	P[label="Professor||"];

	U -> D [arrowtail=diamond, taillabel="1", label="faculty", headlabel="0..20"];

	D -> P [arrowtail=odiamond, taillabel="0..*", label="members", headlabel="0..5"];
}

—Preceding unsigned comment added by 193.132.150.2 (talk) 11:59, 15 November 2007 (UTC)[回覆]

[Forwarded from en:File talk:Aggregation-Composition3.png by Athaenara (talk) 03:10, 4 January 2011 (UTC)][回覆]