Graph-theoretic System Decomposition Based on Modified Cosine-based Similarity