mgraph function

Mining graph function