public static GeometryGraph CreateFromFile(string fileName, out LayoutAlgorithmSettings settings) {
#if DEBUG && TEST_MSAGL
            if (FirstCharacter(fileName) != '<') {
                settings = null;
                return null;
            }
#endif
            using (Stream stream = File.OpenRead(fileName)) {
                var graphReader = new GeometryGraphReader(stream);
                GeometryGraph graph = graphReader.Read();
                settings = graphReader.Settings;
                return graph;
            }
        }
 void ReadGeomGraph() {
     geometryGraphReader = new GeometryGraphReader();
     geometryGraphReader.SetXmlReader(this.xmlReader);
     GeometryGraph geomGraph = geometryGraphReader.Read();
     BindTheGraphs(this.graph, geomGraph, graph.LayoutAlgorithmSettings);
 }