Geometry and topology of string junctions