Skip to content

Bug à la génération de graph #15

Description

@lduf

Il arrive que lors de la génération d'un graph que le programme plante :
Voici le retour dans le terminal

Création du fichier in/300.txt et génaration d'un graph de taille 300
panic: runtime error: index out of range [299] with length 299

goroutine 1 [running]:
main.remove_element(0xc0001ef500, 0x12b, 0x12c, 0x9d, 0xc000182a80, 0x12a, 0x12c)
   ~/graphGenerator.go:53 +0x134
main.generateTie(0x12c, 0xa, 0x601)
   ~/graphGenerator.go:106 +0xb85
main.writeGraph(0x12c, 0x7ffeefbffbe7, 0xa)
  ~/graphGenerator.go:148 +0x1bc
main.main()
  ~/graphGenerator.go:154 +0x4d
exit status 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions