Skip to main content

Author : Amit Singh Sansoya (@amit3200) Github : https://github.com/Amit3200 library : graphqt

# Import

`import graphqt`

# Introduction This is test library for the python which lets you create graph using some functions. This library will allow you to create undirected graphs and also provides some of the other functionalities. This library is for the beginner programmer who wants to get started at the programming with the graphs and want to visualize it easily. It is highly recommended to learn the actual code so that one can implement them without using this library at the interviews, and competition. This library was designed for the programmers who are studying graph currently. This will allow them to have the idea and brute force solution to them which they can further optimize. This libary also allow’s you to do following things

  • Create Graph [Undirected]

  • Detect Cycle [Undirected]

  • Check Path [Undirected]

  • Disconnected Components [Undirected]

# Create Graph

### Description:

This function allow you to add the edge between two nodes. The use of this function is very simple. One only needs to pass the dictionary so called graph,node u and node v where edge will exist between u and v. Moreover the edge v and u will be automatically created as this is undirected graph.

Function Use : insertuv(dictionary_name,node1,node2) Example : graphqt.insert_uv(d,1,2) Return Type : None In above example d is the dictionary (so called graph)

# Detect Cycle

### Description:

As the name suggests, this function will allow you to detect if there is a cycle in graph Return type is Boolean [True or False] where True tells that graph has cycle and False depicts there is no cycle. This will detect as per the undirected graph.

Function use : detect_cycle(dictionary_name) Example : graphqt.detect_cycle(d) Return Type : Boolean In above example d is the dictionary (so called graph)

# Check Path

### Description:

As the name says this function will tell you if there exists the path between two nodes. One only needs to pass dictionary_name (so called graph), the node u and node v. This function returns boolean value. True if there is path between u and v else False

Function use : check_path(dictionary_name,node1,node2) Example : graphqt.check_path(d,2,8) Return Type : Boolean In above example d is the dictionary (so called graph)

# Disconnected Components

### Description:

As the name says this function will detect the disconnected components and this will return a dictionary having keys as: ‘dis_count’: This will give you the values of count of disconnected components in a graph. If the value returned is 1 then there is no disconnected component. [ Makes Sense ;) ] ‘components’: Gives the list of containing nodes which are connected together

Function use : graphqt.get_disconnected_components(d) graphqt.get_disconnected_components(d)[‘dis_count’] graphqt.get_disconnected_components(d)[‘components’] Return Type : Dict

# Note

##### Remember

This library resembles undirected graph Also Get the logic behind function that is very important

# Do Support Author : ### Amit Singh Sansoya (@amit3200) ### Github : https://github.com/Amit3200

## Keep Coding and Smiling

Metadata

Release files for graphqt 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for graphqt 0.2
File Size Uploaded Provenance Actions
graphqt-0.2.tar.gz 3.3 kB Without provenance Details for graphqt-0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for graphqt 0.2
File Interpreter ABI Platform Actions
graphqt-0.2-py3-none-any.whl Python 3 none any Details for graphqt-0.2-py3-none-any.whl

Total release size: 11.5 kB

Release files / graphqt-0.2.tar.gz

Download URL graphqt-0.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d880c857afaf52d8753b0371df21f62bb0d725e26999ac92f6f4f45334a2bb0a
BLAKE2b-256 checksum
How to use checksums
08bf64b28107eaa9755f490f359c3ccdaa3f95432a51bb824d0a04ba6363e271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.0

Release files / graphqt-0.2-py3-none-any.whl

Download URL graphqt-0.2-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60476f8bfe2c48dd08e92be945de31daf1bf713de3933731fc0baa7cbe014ba2
BLAKE2b-256 checksum
How to use checksums
88a68b307233f3f788a718db539327c489afd133a69de49cdf34456690bcbf58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.0

Security for graphqt 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page