<graph>
<graph> 標記一個圖形,內含節點與節點之間的連線。 19.1 Graphs and Digraphs | |||||||||||||||||||||||||
組件 | nets — 19 Graphs, Networks, and Trees | ||||||||||||||||||||||||
屬性 |
| ||||||||||||||||||||||||
屬於 | |||||||||||||||||||||||||
可包含 | |||||||||||||||||||||||||
宣告 |
element graph { att.global.attributes, attribute type { "undirected" | "directed" | "transitionNetwork" | "transducer" | xsd:Name }?, attribute order { data.count }?, attribute size { data.count }?, ( ( label, model.global* )?, ( ( ( node, model.global* )+, ( arc, model.global* )* ) | ( ( arc, model.global* )+, ( node, model.global* )+ ) ) ) } | ||||||||||||||||||||||||
例子 | <graph xml:id="zh-tw_cug1" type="undirected" order="5" size="4" rend="LABEL-PLACE bottom center NODE-FRAME none ARC solid line"> <label>美國西南部航空站</label> <node xml:id="zh-tw_lax" degree="2"> <label>LAX</label> </node> <node xml:id="zh-tw_lvg" degree="2"> <label>LVG</label> </node> <node xml:id="zh-tw_phx" degree="3"> <label>PHX</label> </node> <node xml:id="zh-tw_tus" degree="1"> <label>TUS</label> </node> <node xml:id="zh-tw_cib" degree="0"> <label>CIB</label> </node> <arc from="#zh-tw_lax" to="#zh-tw_lvg"/> <arc from="#zh-tw_lax" to="#zh-tw_phx"/> <arc from="#zh-tw_lvg" to="#zh-tw_phx"/> <arc from="#zh-tw_phx" to="#zh-tw_tus"/> </graph> |