Fixed a bug in the interaction_graph method. Wrote tests for interaction_views.