This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Liquid Particles 3D | spielzeugz.de/lab </title> | |
| <meta name="description" content="HTML5 Demo, particles trapped in a sphere." /> | |
| <meta name="keywords" content="html5,canvas,javascript,particles,interactive,velocity,programming,flash" /> | |
| <style> | |
| *{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # requires python3.6 or above | |
| # requires networkx, matplotlib | |
| import numpy as np | |
| import networkx as nx | |
| import matplotlib as plt | |
| def all_cycles_k_recursive(G, source, k, current_node, visited, cycle, allcycles): | |
| """ | |
| """ | |
| # mark current node as visited |