Skip to main content
added 13 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95

Just to prove that this isalso applies to a general-purpose colouring solution, use parameters below (produce a four-colouring):

Just to prove that this is a general-purpose colouring solution, use parameters below (produce a four-colouring):

Just to prove that this also applies to a general-purpose colouring solution, use parameters below (produce a four-colouring):

use less cryptic explanation of a bug now that v13.1 is out.
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95

NOTE: Why did I comment out ParallelMap? Because apparently CylindricalDecomposition[..., "Components"] fails for many, if not all less trivial inputs on older Mathematica versions up to 13.0.1 when parallel kernels are in use. This appears to be a long-running, reported issue has been fixed in 13.1. You can effectively run this code with ParallelMap once on a fresh session, but not more than that.

NOTE: Why did I comment out ParallelMap? Because apparently CylindricalDecomposition[..., "Components"] fails for many, if not all less trivial inputs on Mathematica versions up to 13.0.1 when parallel kernels are in use. This appears to be a long-running, reported issue. You can effectively run this code with ParallelMap once on a fresh session, but not more than that.

NOTE: Why did I comment out ParallelMap? Because apparently CylindricalDecomposition[..., "Components"] fails for many, if not all less trivial inputs on older Mathematica versions when parallel kernels are in use. This issue has been fixed in 13.1. You can effectively run this code with ParallelMap once on a fresh session, but not more than that.

The mentioned problem has been fixed in a future version.
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95

NOTE: Why did I comment out ParallelMap? Because apparently CylindricalDecomposition[..., "Components"] fails for many, if not all less trivial inputs on Mathematica versions up to 13.0.1 when parallel kernels are in use. This appears to be a long-running, reported issue. You can effectively run this code with ParallelMap once on a fresh session, but not more than that.

NOTE: Why did I comment out ParallelMap? Because apparently CylindricalDecomposition[..., "Components"] fails for many, if not all less trivial inputs when parallel kernels are in use. This appears to be a long-running, reported issue. You can effectively run this code with ParallelMap once on a fresh session, but not more than that.

NOTE: Why did I comment out ParallelMap? Because apparently CylindricalDecomposition[..., "Components"] fails for many, if not all less trivial inputs on Mathematica versions up to 13.0.1 when parallel kernels are in use. This appears to be a long-running, reported issue. You can effectively run this code with ParallelMap once on a fresh session, but not more than that.

prettier random example result :)
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
note on "Closure"
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
still a bit more layout and discretization improvements
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
improved VertexCoordinates
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 2 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 82 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 180 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 4 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 774 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
still a bit of code cleanup.
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
Refine is enough, replace Simplify with it.
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
deleted 61 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
original solution code simplified
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 2 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
improved last example
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 117 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 1 character in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 970 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 3640 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
added 676 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
ParallelMap note.
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading
deleted 7 characters in body
Source Link
kirma
  • 19.1k
  • 1
  • 55
  • 95
Loading