Clustering of Heterogeneous Networks with Directional Flows Based on “Snake” Similarities