Bug in NearestNeighborGraph

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












NearestNeighborGraph generates incorrect output on rasterized input. Reported to Wolfram support CASE:4093797



$Version


11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)



NearestNeighborGraph[Rasterize[Style[#, 20]] & /@ Alphabet, 2, VertexLabels -> Automatic] 


enter image description here



Is there a workaround?










share|improve this question























  • This is a questions and answers site. What exactly is your question?
    – Szabolcs
    1 hour ago














up vote
1
down vote

favorite












NearestNeighborGraph generates incorrect output on rasterized input. Reported to Wolfram support CASE:4093797



$Version


11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)



NearestNeighborGraph[Rasterize[Style[#, 20]] & /@ Alphabet, 2, VertexLabels -> Automatic] 


enter image description here



Is there a workaround?










share|improve this question























  • This is a questions and answers site. What exactly is your question?
    – Szabolcs
    1 hour ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











NearestNeighborGraph generates incorrect output on rasterized input. Reported to Wolfram support CASE:4093797



$Version


11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)



NearestNeighborGraph[Rasterize[Style[#, 20]] & /@ Alphabet, 2, VertexLabels -> Automatic] 


enter image description here



Is there a workaround?










share|improve this question















NearestNeighborGraph generates incorrect output on rasterized input. Reported to Wolfram support CASE:4093797



$Version


11.3.0 for Mac OS X x86 (64-bit) (March 7, 2018)



NearestNeighborGraph[Rasterize[Style[#, 20]] & /@ Alphabet, 2, VertexLabels -> Automatic] 


enter image description here



Is there a workaround?







graphs-and-networks






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Carl Woll

56.9k272147




56.9k272147










asked 1 hour ago









Rohit Namjoshi

916




916











  • This is a questions and answers site. What exactly is your question?
    – Szabolcs
    1 hour ago
















  • This is a questions and answers site. What exactly is your question?
    – Szabolcs
    1 hour ago















This is a questions and answers site. What exactly is your question?
– Szabolcs
1 hour ago




This is a questions and answers site. What exactly is your question?
– Szabolcs
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted










Assuming you are asking for a workaround, you can generate the output you expect with:



v = Style[#,20]& /@ Alphabet;
rv = Rasterize/@v;

NearestNeighborGraph[
rv,
2,
VertexLabels->Thread@Rule[rv,v]
]


enter image description here






share|improve this answer




















  • Perfect, thanks!
    – Rohit Namjoshi
    49 mins ago










Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f181940%2fbug-in-nearestneighborgraph%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted










Assuming you are asking for a workaround, you can generate the output you expect with:



v = Style[#,20]& /@ Alphabet;
rv = Rasterize/@v;

NearestNeighborGraph[
rv,
2,
VertexLabels->Thread@Rule[rv,v]
]


enter image description here






share|improve this answer




















  • Perfect, thanks!
    – Rohit Namjoshi
    49 mins ago














up vote
3
down vote



accepted










Assuming you are asking for a workaround, you can generate the output you expect with:



v = Style[#,20]& /@ Alphabet;
rv = Rasterize/@v;

NearestNeighborGraph[
rv,
2,
VertexLabels->Thread@Rule[rv,v]
]


enter image description here






share|improve this answer




















  • Perfect, thanks!
    – Rohit Namjoshi
    49 mins ago












up vote
3
down vote



accepted







up vote
3
down vote



accepted






Assuming you are asking for a workaround, you can generate the output you expect with:



v = Style[#,20]& /@ Alphabet;
rv = Rasterize/@v;

NearestNeighborGraph[
rv,
2,
VertexLabels->Thread@Rule[rv,v]
]


enter image description here






share|improve this answer












Assuming you are asking for a workaround, you can generate the output you expect with:



v = Style[#,20]& /@ Alphabet;
rv = Rasterize/@v;

NearestNeighborGraph[
rv,
2,
VertexLabels->Thread@Rule[rv,v]
]


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 1 hour ago









Carl Woll

56.9k272147




56.9k272147











  • Perfect, thanks!
    – Rohit Namjoshi
    49 mins ago
















  • Perfect, thanks!
    – Rohit Namjoshi
    49 mins ago















Perfect, thanks!
– Rohit Namjoshi
49 mins ago




Perfect, thanks!
– Rohit Namjoshi
49 mins ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f181940%2fbug-in-nearestneighborgraph%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

Installing NextGIS Connect into QGIS 3?

One-line joke