def METHOD_NAME(g, name, **kwargs):
    if "_point" in name:
        kwargs.setdefault("shape", "point")
    else:
        kwargs.setdefault("fillcolor", "#77ff7788")
        kwargs.setdefault("color", "#00000099")
    kwargs.setdefault("label", strip_suffix(name))
    g.METHOD_NAME(name, **kwargs)
    subgraph_to_first_node.setdefault(g.name, name)
    subgraph_to_last_node[g.name] = name