Differential Equations for Random Processes and Random Graphs