Esempio n. 1
0
        public void EdgeSpans_Plot(
            [ArgDescription("Edge spans file."), ArgRequired, ArgExistingFile] string edgeSpansFilePath,
            [ArgDescription("Shows the directions of the edges."), ArgDefaultValue(false)] bool showDirections)
        {
            var imageFilePath = Path.Combine(
                Path.GetDirectoryName(edgeSpansFilePath),
                Path.GetFileNameWithoutExtension(edgeSpansFilePath) + (showDirections ? ".withDirections" : "") + ".png");

            EdgeSpanVisualizer.RenderAllSpans(edgeSpansFilePath, imageFilePath, showDirections);
        }