Opened 5 years ago

Closed 5 years ago

#6950 closed Bugs (fixed)

grid_graph dimensions and dim length

Reported by: Sergey Mitsyn <svm at> Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:



I see that the documentation for grid_graph at says that the number of dimensions should be greater than 2, but I can't really see why is that important while looking at the source code, and the test passes even for 1 dimension.

But it is clear that a dimension length must be greater than 2 if the dimension is wrapped, as in the opposite case (length=2) it is impossible to distinguish between wrapping and non-wrapping edge.

Maybe the documentation being intended to specify the lower limit for a dimension length rather than a dimensionality and requires a fix?

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Jeremiah Willcock

Resolution: fixed
Status: newclosed

(In [80642]) Removed incorrect note about restrictions on graph dimensionality and fixed other typos; fixes #6950

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jeremiah Willcock.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.