10 Manage the edges of the document.
12 Add an edge, defined by two vertices, in the document::
14 edge_12 = doc.addEdge(vertex_1, vertex_2)
16 Add an edge, defined by one vertex and one vector, in the document::
18 edge_12 = doc.addEdgeVector(vertex, vector)
20 Get the number of all edges in the document::
22 sum_a = doc.countEdge()
24 Get the number of edges used only in the model of blocks::
26 sum_u = doc.countUsedEdge()
28 Get the edges used by the model of blocks
30 .. literalinclude:: test_doc/edge/edge.py
32 Get an edge of the document::
34 edge_i = doc.getEdge(i)
36 Get the vertices of an edge::
38 vertex_a = edge_i.getVertex(0)
39 vertex_b = edge_i.getVertex(1)
41 Find an edge in the document::
43 edge_f = doc.findEdge(vertex_1, vertex_2)
45 More operations: *Edge* inherits :ref:`Element <tuielement>`.
47 GUI command: :ref:`guiedge`