웜의 뇌 신경세포 그래프를 그리는 코드는 넘파이 배열을 사용하여 필요한 만큼의 행렬로 계산
을 수행한다. 노드 수가
300
개 미만인 작은 그래프를 그리기 때문에 위의 코드가 동작했지만
노드가 많은 큰 그래프의 경우에는 실패할 것이다.
예를 들어
100
,
000
개 이상의 패키지가 포함된 파이썬 패키지 인덱스
Python
Package
Index
,
PyPI
에서
라이브러리 간의 관계를 분석한다고 가정해보자. 이 그래프의 라플라시안 행렬을 사용하면 램
에서
8
x
(
100
x
10
3
)
2
=
8
x
10
10
바이트(
80GB
)의 용량을 차지한다. 행렬을 계산할 때 인접
성, 대칭 인접성, 의사역행렬에서
2
개의 임시 행렬을 사용한다고 가정한다면, 대부분의 데스크
톱 컴퓨터가 계산하지 못하는 최대
480GB
까지의 용량을 차지할 수 있다.
512GB
램의 데스크톱 컴퓨터가 있다면 위의 분석 작업을 처리할 수 있을 것이다. 소위 ‘큰’ 그
래프에서 짧은 단위의 작업을 만들어서 처리할 것이다.
214
우아한 사이파이 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.