graph.m improvements