Representing Social Networks as Dynamic Heterogeneous Graphs