attribute graph without igraph