<node>

<node> encodes a node, a possibly labeled point in a graph. 19.1 Graphs and Digraphs
組件nets — 19 Graphs, Networks, and Trees
屬性
valueprovides the value of a node, which is a feature structure or other analytic element.
狀態 非必備的
資料類型
data.pointer
A valid identifier.
typeprovides a type for a node.
狀態 非必備的
資料類型
data.enumerated
被推薦的值包含:
initial
initial node in a transition network
final
final node in a transition network
adjTo (adjacent to) gives the identifiers of the nodes which are adjacent to the current node.
狀態 可應用時必備的
資料類型 1–∞ occurrences of
data.pointer
以空白鍵隔開
A list of identifiers.
adjFrom (adjacent from) gives the identifiers of the nodes which are adjacent from the current node.
狀態 可應用時必備的
資料類型 1–∞ occurrences of
data.pointer
以空白鍵隔開
A list of identifiers.
adj (adjacent) gives the identifiers of the nodes which are both adjacent to and adjacent from the current node.
狀態 可應用時必備的
資料類型 1–∞ occurrences of
data.pointer
以空白鍵隔開
A list of identifiers.
Use this attribute instead of the adjTo and adjFrom attributes when the graph is undirected and vice versa if the graph is directed.
inDegreegives the in degree of the node, the number of nodes which are adjacent from the given node.
狀態 非必備的
資料類型
data.count
A non-negative integer.
outDegreegives the out degree of the node, the number of nodes which are adjacent to the given node.
狀態 非必備的
資料類型
data.count
A non-negative integer.
degreegives the degree of the node, the number of arcs with which the node is incident.
狀態 非必備的
資料類型
data.count
A non-negative integer.
Use this attribute instead of the inDegree and outDegree attributes when the graph is undirected and vice versa if the graph is directed.
屬於graph
可包含
core: label
宣告
element node
{
   att.global.attributes,
   attribute value { data.pointer }?,
   attribute type { "initial" | "final" | xsd:Name }?,
   attribute adjTo { list { data.pointer+ } }?,
   attribute adjFrom { list { data.pointer+ } }?,
   attribute adj { list { data.pointer+ } }?,
   attribute inDegree { data.count }?,
   attribute outDegree { data.count }?,
   attribute degree { data.count }?,
   ( label, label? )?
}
例子
<node
  xml:id="t6"
  type="final"
  inDegree="2"
  outDegree="0">

 <label>6</label>
</node>
Zero, one, or two children <label> elements may be present. The first occurence of <label> provides a label for the arc; the second provides a second label for the arc, and should be used if a transducer is being encoded whose actions are associated with nodes rather than with arcs.