m_svg_g_element.add_outline_overlap_bbox(node.svg_g_element(), tolerance);
}
+SVG::SVGElement &GraphvizEdge::arrow(const std::size_t index) const {
+ return m_svg_g_element.find_child(SVG::SVGElementType::Polygon, index);
+}
+
std::string_view GraphvizEdge::edgeop() const { return m_edgeop; }
std::string GraphvizEdge::fillcolor() const {
/// element. The outline bounding box is the bounding box with penwidth taken
/// into account.
void add_outline_overlap_bbox(const GraphvizNode &node, double tolerance = 0);
+ /// Return the edge arrowhead/arrowtail with the specified index. If there's
+ /// both an arrowhead and an arrowtail, the arrowtail is at index 0 and the
+ /// arrowhead is at index 1. If there's only one, it's at index 0. Throws an
+ /// exception if there's no arrow at the specified index.
+ SVG::SVGElement &arrow(std::size_t index = 0) const;
/// Return the bounding box of the edge
SVG::SVGRect bbox() const;
/// Return the center of the edge's bounding box