Added: set edge color by flag tags