Plot weighted graph