Development of Graph-Based Algorithm for Differentiating Pathophysiological Conditions