<graph>
<graph> 標記一個圖形,內含節點與節點之間的連線。 19.1 Graphs and Digraphs | |||||||||||||||||||||||||
組件 | nets — 19 Graphs, Networks, and Trees | ||||||||||||||||||||||||
屬性 | att.global (@xml:id, @n, @xml:lang, @rend, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs))
| ||||||||||||||||||||||||
屬於 | |||||||||||||||||||||||||
可包含在於 | header: handNote scriptNote typeNote msdescription: accMat acquisition additions collation condition custEvent decoNote filiation foliation layout musicNotation origin provenance source support surrogates tagdocs: specGrp | ||||||||||||||||||||||||
可包含 | |||||||||||||||||||||||||
宣告 |
element graph { att.global.attributes, att.global.linking.attributes, att.global.analytic.attributes, att.global.facs.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> |