An okayish python script to generate a random Euler circuit with given number of vertices and edges.

Overview

Euler-Circuit-Test-Case-Generator

An okayish python script to generate a random Euler circuit with given number of vertices and edges.

Executing the Script

Just download or copy the code in testcasegen.py,use your python IDE or terminal to run the script and give the number of vertices and edges as asked.The output is generated in the input format specified by the assignment along with one of the possible outputs for the assignment program.

Very Very Important

The program will run into infinite loop if the euler circuit does not exist for the number of edges and vertices given. Just stop the execution. There might be cases where euler circuit exists and it runs into an infinite loop, don't kill me for that. I don't guarantee 100% accuracy for this program. You can always verify yourself.

Sample Input and Output

Enter number of vertices:6
Enter number of edges:11
6
11
1 3
5 1
5 3
4 2
2 3
0 4
1 2
5 0
4 3
5 2
1 4



One of the possible outputs:
5 2
2 3
3 4
4 0
0 5
5 3
3 1
1 4
4 2
2 1
1 5

Any feedback

Drop an issue or do a pull request

Disclaimer

I am not promising you 100% accuracy for this script. It works for me so I am sharing it. If it works for you share it too.

Drop a if you found it useful 😁

You might also like...
A simple python script to generate an iCalendar file for the university classes.
A simple python script to generate an iCalendar file for the university classes.

iCal Generator This is a simple python script to generate an iCalendar file for the university classes. Installation Clone the repository git clone ht

aws ec2.py companion script to generate sshconfigs with auto bastion host discovery

ec2-bastion-sshconfig This script will interate over instances found by ec2.py and if those instances are not publically accessible it will search the

Script to generate a massive volume of data in sql, csv, json or xml format

DataGenerator Made with Python Open for pull requests 1. Dependencies To install required dependencies run pip install -r requirements.txt 2. Executi

Finds price floor for every single attribute in a given collection

Solana Solanart Scanner Enjoy the Free Code Steps to run Download VS Code

Python program to do with percentages and chances, random generation.

Chances and Percentages Python program to do with percentages and chances, random generation. What is this? This small program will generate a list wi

Simple Python tool that generates a pseudo-random password with numbers, letters, and special characters in accordance with password policy best practices.
Simple Python tool that generates a pseudo-random password with numbers, letters, and special characters in accordance with password policy best practices.

Simple Python tool that generates a pseudo-random password with numbers, letters, and special characters in accordance with password policy best practices.

A simple and easy to use collection of random python functions.

A simple and easy to use collection of random python functions.

A simple Python app that generates semi-random chord progressions.

chords-generator A simple Python app that generates semi-random chord progressions.

A random cats photos python module

A random cats photos python module

Owner
Alen Antony
Computer Science Engineering
Alen Antony
Random Number Generator Analysis With Python

Random-Number-Generator-Analysis Governor's Honors Program Project to determine

Jack Prewitt 2 Jan 23, 2022
Python Random Number Genrator

This Genrates Random Numbers. This Random Number Generator was made using python. This software uses Time and Random extension. Download the EXE file and run it to get your answer.

Krish Sethi 2 Feb 3, 2022
Random Number Generator

Application for generating a random number.

Michael J Bailey 1 Oct 12, 2021
A python lib for generate random string and digits and special characters or A combination of them

A python lib for generate random string and digits and special characters or A combination of them

Torham 4 Nov 15, 2022
Genart - Generate random art to sell as nfts

Genart - Generate random art to sell as nfts Usage git clone

Will 13 Mar 17, 2022
Generate random german words

Generate random german words / Generiere zufällige deutsche Wörter Getting Started Pip install with pip install zufallsworte Install the library with

Maximilian Freitag 5 Mar 24, 2022
Create password - Generate Random Password with Passphrase

Generate Random Password with Passphrase This is a python code to generate stron

null 1 Jan 18, 2022
A python tool give n number of inputs and parallelly you will get a output by separetely

http-status-finder Hello Everyone!! This is kavisurya, In this tool you can give n number of inputs and parallelly you will get a output by separetely

KAVISURYA V 3 Dec 5, 2021
python script to generate color coded resistor images

Resistor image generator I got nerdsniped into making this. It's not finished at all, and the code is messy. The end goal it generate a whole E-series

MichD 1 Nov 12, 2021
A python script to generate wallpaper

wallpaper eits Warning You need to set the path to Robot Mono font in the source code. (Settings are in the main function) Usage A script that given a

Henrique Tsuyoshi Yara 5 Dec 2, 2021