PDF on Graphs and Graph Algos