Skip to content

main #

fn extract_transitions #

fn extract_transitions(line string) ?string

extract_transitions extracts the transitions from a line and returns it as a formatted string.

fn get_transitions #

fn get_transitions(line string) ?string

get_transitions gets the transitions from a line and returns it as a formatted string using extract_transitions.

fn main #

fn main()

main reads a file and generates a graph from the transitions in the file.

fn read_file #

fn read_file(file string) ![]string

read_file reads a file and returns the lines as a list of strings. It takes the file path as an argument.