approx_minimum_edge_dominating_set#
- graph_tool.structure.approx_minimum_edge_dominating_set(g)[git][source]#
Return an edge dominating set within a factor two of the minimum.
- Parameters:
- g
Graph Graph to be used. Edge directions are ignored.
- g
- Returns:
- edges
EdgePropertyMap Boolean edge property map marking the edges of the set, each other edge sharing an endpoint with one of them.
- edges
See also
approx_minimum_maximal_matchingApproximate minimum maximal matching
approx_minimum_dominating_setVertex counterpart
Notes
An edge dominating set is a set \(D\) of edges such that every edge of the graph is in \(D\) or shares an endpoint with an edge of \(D\), and a minimum one has the fewest edges. A maximal matching is an edge dominating set, and the smallest edge dominating set has the size of the smallest maximal matching [yannakakis-edge-1980], so that the matching returned by
approx_minimum_maximal_matching()is a 2-approximation.References
[yannakakis-edge-1980]Mihalis Yannakakis and Fanica Gavril, “Edge dominating sets in graphs”, SIAM Journal on Applied Mathematics 38, 364-372 (1980), DOI: 10.1137/0138030 [sci-hub, @tor]
Examples
>>> g = gt.collection.data["karate"] >>> print(gt.approx_minimum_edge_dominating_set(g).a.sum()) 13