mosstool.map.osm._motif

Module Contents

Functions

close_nodes

For a node [within an junction], if its successor node can [easily] return to this node, then the aggregation Generally, it is a “□”-shaped structure or a “△” structure in the junction.

suc_is_close_by_other_way

If there is another path (very short) that can reach my successor, merge it including but not limited to | v –>—C–>—A–>– \ v \ | v | \ | \ | | B v | 或 —>—C–>—B–>– \ / \ / / A | | v ^ | |

motif_H

Identify motif as below | | v ^ | | =====O====O===== | | v ^ | | 或 | | v ^ | | =====O====O | | v ^ | |

Data

API

mosstool.map.osm._motif.__all__

[‘close_nodes’, ‘suc_is_close_by_other_way’, ‘motif_H’]

mosstool.map.osm._motif.close_nodes(G: networkx.DiGraph) set[frozenset[int]]

For a node [within an junction], if its successor node can [easily] return to this node, then the aggregation Generally, it is a “□”-shaped structure or a “△” structure in the junction.

mosstool.map.osm._motif.suc_is_close_by_other_way(G: networkx.DiGraph) set[frozenset[int]]

If there is another path (very short) that can reach my successor, merge it including but not limited to | v –>—C–>—A–>– \ v \ | v | \ | \ | | B v | 或 —>—C–>—B–>– \ / \ / / A | | v ^ | |

mosstool.map.osm._motif.motif_H(G: networkx.DiGraph) set[frozenset[int]]

Identify motif as below | | v ^ | | =====O====O===== | | v ^ | | 或 | | v ^ | | =====O====O | | v ^ | |